import { defineComponent, useAttrs, resolveComponent, openBlock, createElementBlock, Fragment, createElementVNode, renderSlot, createVNode, mergeProps, createSlots, withCtx, normalizeProps, guardReactiveProps, createBlock, createTextVNode, createCommentVNode, renderList, toDisplayString, h, nextTick, reactive, ref, onMounted, unref, pushScopeId, popScopeId, withDirectives, vShow, watch } from "vue";
import { message, Modal, notification } from "ant-design-vue";
const __default__ = {
  inheritAttrs: false
};
const _sfc_main$6 = /* @__PURE__ */ defineComponent({
  ...__default__,
  __name: "Table",
  props: {
    operation: {
      type: Object,
      default: () => {
      }
    }
  },
  emits: ["handleView", "handleEdit", "handleDelete"],
  setup(__props, { emit: emits }) {
    const props = __props;
    useAttrs();
    function getColumns(attrsCopy) {
      const { operation } = props;
      const columns = attrsCopy.columns;
      if (operation.hiddenView && operation.hiddenEdit && operation.hiddenDelete && (!operation.customs || !operation.customs.length)) {
        return columns || [];
      }
      const haveAction = columns.filter(({ key }) => key === "commonTableAction").length > 0;
      if (!haveAction) {
        columns.push({
          key: "commonTableAction",
          title: "\u64CD\u4F5C",
          width: getActionColumnsWidth(operation),
          ...filterActionColumnsAttrs(operation)
        });
      }
      return columns || [];
    }
    function getActionColumnsWidth(operation) {
      let width = 0;
      const buttonWidth = 85;
      if (JSON.stringify(operation) === "{}")
        return buttonWidth * 3 + "px";
      if (!operation.hiddenDelete) {
        width += buttonWidth;
      }
      if (!operation.hiddenEdit) {
        width += buttonWidth;
      }
      if (!operation.hiddenView) {
        width += buttonWidth;
      }
      if (operation.customs && operation.customs.length) {
        width += operation.customs.length * buttonWidth;
      }
      return width + "px";
    }
    function filterActionColumnsAttrs(operation) {
      const { hiddenDelete, hiddenEdit, hiddenView, customs, ...rest } = operation;
      return rest;
    }
    function handleView(data) {
      emits("handleView", data);
    }
    function handleEdit(data) {
      console.log("edit", data);
      emits("handleEdit", data);
    }
    function handleDelete(data) {
      emits("handleDelete", data);
    }
    function getButtonBind(operate) {
      const { name, type, ...rest } = operate;
      return rest;
    }
    return (_ctx, _cache) => {
      const _component_a_button = resolveComponent("a-button");
      const _component_a_popconfirm = resolveComponent("a-popconfirm");
      const _component_a_table = resolveComponent("a-table");
      return openBlock(), createElementBlock(Fragment, null, [
        createElementVNode("div", null, [
          renderSlot(_ctx.$slots, "default")
        ]),
        createVNode(_component_a_table, mergeProps(_ctx.$attrs, {
          columns: getColumns(_ctx.$attrs)
        }), createSlots({
          bodyCell: withCtx(({ column, record }) => [
            renderSlot(_ctx.$slots, "bodyCell", normalizeProps(guardReactiveProps({ column, record }))),
            column.key === "commonTableAction" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
              !__props.operation.hiddenEdit ? (openBlock(), createBlock(_component_a_button, {
                key: 0,
                type: "text",
                size: "small",
                onClick: ($event) => handleEdit(record)
              }, {
                default: withCtx(() => [
                  createTextVNode(" \u7F16\u8F91 ")
                ]),
                _: 2
              }, 1032, ["onClick"])) : createCommentVNode("", true),
              !__props.operation.hiddenView ? (openBlock(), createBlock(_component_a_button, {
                key: 1,
                type: "text",
                size: "small",
                onClick: ($event) => handleView(record)
              }, {
                default: withCtx(() => [
                  createTextVNode(" \u67E5\u770B ")
                ]),
                _: 2
              }, 1032, ["onClick"])) : createCommentVNode("", true),
              __props.operation.customs && __props.operation.customs.length ? (openBlock(true), createElementBlock(Fragment, { key: 2 }, renderList(__props.operation.customs, (operate, index2) => {
                return openBlock(), createElementBlock(Fragment, { key: index2 }, [
                  !operate.hidden ? (openBlock(), createBlock(_component_a_button, mergeProps({
                    key: 0,
                    type: operate.type || "primary",
                    size: "small"
                  }, getButtonBind(operate), {
                    onClick: ($event) => operate.click(record)
                  }), {
                    default: withCtx(() => [
                      createTextVNode(toDisplayString(operate.name), 1)
                    ]),
                    _: 2
                  }, 1040, ["type", "onClick"])) : createCommentVNode("", true)
                ], 64);
              }), 128)) : createCommentVNode("", true),
              createVNode(_component_a_popconfirm, {
                title: "\u662F\u5426\u786E\u5B9A\u5220\u9664",
                onConfirm: ($event) => handleDelete(record)
              }, {
                default: withCtx(() => [
                  !__props.operation.hiddenDelete ? (openBlock(), createBlock(_component_a_button, {
                    key: 0,
                    type: "text",
                    size: "small",
                    danger: ""
                  }, {
                    default: withCtx(() => [
                      createTextVNode(" \u5220\u9664 ")
                    ]),
                    _: 1
                  })) : createCommentVNode("", true)
                ]),
                _: 2
              }, 1032, ["onConfirm"])
            ], 64)) : createCommentVNode("", true)
          ]),
          _: 2
        }, [
          renderList(Object.keys(_ctx.$slots).filter((res) => res !== "bodyCell"), (item) => {
            return {
              name: item,
              fn: withCtx((data) => [
                renderSlot(_ctx.$slots, item, normalizeProps(guardReactiveProps(data || {})))
              ])
            };
          })
        ]), 1040, ["columns"])
      ], 64);
    };
  }
});
function bound01(n, max) {
  if (isOnePointZero(n)) {
    n = "100%";
  }
  var isPercent = isPercentage(n);
  n = max === 360 ? n : Math.min(max, Math.max(0, parseFloat(n)));
  if (isPercent) {
    n = parseInt(String(n * max), 10) / 100;
  }
  if (Math.abs(n - max) < 1e-6) {
    return 1;
  }
  if (max === 360) {
    n = (n < 0 ? n % max + max : n % max) / parseFloat(String(max));
  } else {
    n = n % max / parseFloat(String(max));
  }
  return n;
}
function isOnePointZero(n) {
  return typeof n === "string" && n.indexOf(".") !== -1 && parseFloat(n) === 1;
}
function isPercentage(n) {
  return typeof n === "string" && n.indexOf("%") !== -1;
}
function boundAlpha(a) {
  a = parseFloat(a);
  if (isNaN(a) || a < 0 || a > 1) {
    a = 1;
  }
  return a;
}
function convertToPercentage(n) {
  if (n <= 1) {
    return "".concat(Number(n) * 100, "%");
  }
  return n;
}
function pad2(c) {
  return c.length === 1 ? "0" + c : String(c);
}
function rgbToRgb(r, g, b) {
  return {
    r: bound01(r, 255) * 255,
    g: bound01(g, 255) * 255,
    b: bound01(b, 255) * 255
  };
}
function hue2rgb(p, q, t) {
  if (t < 0) {
    t += 1;
  }
  if (t > 1) {
    t -= 1;
  }
  if (t < 1 / 6) {
    return p + (q - p) * (6 * t);
  }
  if (t < 1 / 2) {
    return q;
  }
  if (t < 2 / 3) {
    return p + (q - p) * (2 / 3 - t) * 6;
  }
  return p;
}
function hslToRgb(h2, s, l) {
  var r;
  var g;
  var b;
  h2 = bound01(h2, 360);
  s = bound01(s, 100);
  l = bound01(l, 100);
  if (s === 0) {
    g = l;
    b = l;
    r = l;
  } else {
    var q = l < 0.5 ? l * (1 + s) : l + s - l * s;
    var p = 2 * l - q;
    r = hue2rgb(p, q, h2 + 1 / 3);
    g = hue2rgb(p, q, h2);
    b = hue2rgb(p, q, h2 - 1 / 3);
  }
  return { r: r * 255, g: g * 255, b: b * 255 };
}
function rgbToHsv(r, g, b) {
  r = bound01(r, 255);
  g = bound01(g, 255);
  b = bound01(b, 255);
  var max = Math.max(r, g, b);
  var min = Math.min(r, g, b);
  var h2 = 0;
  var v = max;
  var d = max - min;
  var s = max === 0 ? 0 : d / max;
  if (max === min) {
    h2 = 0;
  } else {
    switch (max) {
      case r:
        h2 = (g - b) / d + (g < b ? 6 : 0);
        break;
      case g:
        h2 = (b - r) / d + 2;
        break;
      case b:
        h2 = (r - g) / d + 4;
        break;
    }
    h2 /= 6;
  }
  return { h: h2, s, v };
}
function hsvToRgb(h2, s, v) {
  h2 = bound01(h2, 360) * 6;
  s = bound01(s, 100);
  v = bound01(v, 100);
  var i = Math.floor(h2);
  var f = h2 - i;
  var p = v * (1 - s);
  var q = v * (1 - f * s);
  var t = v * (1 - (1 - f) * s);
  var mod = i % 6;
  var r = [v, q, p, p, t, v][mod];
  var g = [t, v, v, q, p, p][mod];
  var b = [p, p, t, v, v, q][mod];
  return { r: r * 255, g: g * 255, b: b * 255 };
}
function rgbToHex(r, g, b, allow3Char) {
  var hex = [
    pad2(Math.round(r).toString(16)),
    pad2(Math.round(g).toString(16)),
    pad2(Math.round(b).toString(16))
  ];
  if (allow3Char && hex[0].startsWith(hex[0].charAt(1)) && hex[1].startsWith(hex[1].charAt(1)) && hex[2].startsWith(hex[2].charAt(1))) {
    return hex[0].charAt(0) + hex[1].charAt(0) + hex[2].charAt(0);
  }
  return hex.join("");
}
function convertHexToDecimal(h2) {
  return parseIntFromHex(h2) / 255;
}
function parseIntFromHex(val) {
  return parseInt(val, 16);
}
var names = {
  aliceblue: "#f0f8ff",
  antiquewhite: "#faebd7",
  aqua: "#00ffff",
  aquamarine: "#7fffd4",
  azure: "#f0ffff",
  beige: "#f5f5dc",
  bisque: "#ffe4c4",
  black: "#000000",
  blanchedalmond: "#ffebcd",
  blue: "#0000ff",
  blueviolet: "#8a2be2",
  brown: "#a52a2a",
  burlywood: "#deb887",
  cadetblue: "#5f9ea0",
  chartreuse: "#7fff00",
  chocolate: "#d2691e",
  coral: "#ff7f50",
  cornflowerblue: "#6495ed",
  cornsilk: "#fff8dc",
  crimson: "#dc143c",
  cyan: "#00ffff",
  darkblue: "#00008b",
  darkcyan: "#008b8b",
  darkgoldenrod: "#b8860b",
  darkgray: "#a9a9a9",
  darkgreen: "#006400",
  darkgrey: "#a9a9a9",
  darkkhaki: "#bdb76b",
  darkmagenta: "#8b008b",
  darkolivegreen: "#556b2f",
  darkorange: "#ff8c00",
  darkorchid: "#9932cc",
  darkred: "#8b0000",
  darksalmon: "#e9967a",
  darkseagreen: "#8fbc8f",
  darkslateblue: "#483d8b",
  darkslategray: "#2f4f4f",
  darkslategrey: "#2f4f4f",
  darkturquoise: "#00ced1",
  darkviolet: "#9400d3",
  deeppink: "#ff1493",
  deepskyblue: "#00bfff",
  dimgray: "#696969",
  dimgrey: "#696969",
  dodgerblue: "#1e90ff",
  firebrick: "#b22222",
  floralwhite: "#fffaf0",
  forestgreen: "#228b22",
  fuchsia: "#ff00ff",
  gainsboro: "#dcdcdc",
  ghostwhite: "#f8f8ff",
  goldenrod: "#daa520",
  gold: "#ffd700",
  gray: "#808080",
  green: "#008000",
  greenyellow: "#adff2f",
  grey: "#808080",
  honeydew: "#f0fff0",
  hotpink: "#ff69b4",
  indianred: "#cd5c5c",
  indigo: "#4b0082",
  ivory: "#fffff0",
  khaki: "#f0e68c",
  lavenderblush: "#fff0f5",
  lavender: "#e6e6fa",
  lawngreen: "#7cfc00",
  lemonchiffon: "#fffacd",
  lightblue: "#add8e6",
  lightcoral: "#f08080",
  lightcyan: "#e0ffff",
  lightgoldenrodyellow: "#fafad2",
  lightgray: "#d3d3d3",
  lightgreen: "#90ee90",
  lightgrey: "#d3d3d3",
  lightpink: "#ffb6c1",
  lightsalmon: "#ffa07a",
  lightseagreen: "#20b2aa",
  lightskyblue: "#87cefa",
  lightslategray: "#778899",
  lightslategrey: "#778899",
  lightsteelblue: "#b0c4de",
  lightyellow: "#ffffe0",
  lime: "#00ff00",
  limegreen: "#32cd32",
  linen: "#faf0e6",
  magenta: "#ff00ff",
  maroon: "#800000",
  mediumaquamarine: "#66cdaa",
  mediumblue: "#0000cd",
  mediumorchid: "#ba55d3",
  mediumpurple: "#9370db",
  mediumseagreen: "#3cb371",
  mediumslateblue: "#7b68ee",
  mediumspringgreen: "#00fa9a",
  mediumturquoise: "#48d1cc",
  mediumvioletred: "#c71585",
  midnightblue: "#191970",
  mintcream: "#f5fffa",
  mistyrose: "#ffe4e1",
  moccasin: "#ffe4b5",
  navajowhite: "#ffdead",
  navy: "#000080",
  oldlace: "#fdf5e6",
  olive: "#808000",
  olivedrab: "#6b8e23",
  orange: "#ffa500",
  orangered: "#ff4500",
  orchid: "#da70d6",
  palegoldenrod: "#eee8aa",
  palegreen: "#98fb98",
  paleturquoise: "#afeeee",
  palevioletred: "#db7093",
  papayawhip: "#ffefd5",
  peachpuff: "#ffdab9",
  peru: "#cd853f",
  pink: "#ffc0cb",
  plum: "#dda0dd",
  powderblue: "#b0e0e6",
  purple: "#800080",
  rebeccapurple: "#663399",
  red: "#ff0000",
  rosybrown: "#bc8f8f",
  royalblue: "#4169e1",
  saddlebrown: "#8b4513",
  salmon: "#fa8072",
  sandybrown: "#f4a460",
  seagreen: "#2e8b57",
  seashell: "#fff5ee",
  sienna: "#a0522d",
  silver: "#c0c0c0",
  skyblue: "#87ceeb",
  slateblue: "#6a5acd",
  slategray: "#708090",
  slategrey: "#708090",
  snow: "#fffafa",
  springgreen: "#00ff7f",
  steelblue: "#4682b4",
  tan: "#d2b48c",
  teal: "#008080",
  thistle: "#d8bfd8",
  tomato: "#ff6347",
  turquoise: "#40e0d0",
  violet: "#ee82ee",
  wheat: "#f5deb3",
  white: "#ffffff",
  whitesmoke: "#f5f5f5",
  yellow: "#ffff00",
  yellowgreen: "#9acd32"
};
function inputToRGB(color) {
  var rgb = { r: 0, g: 0, b: 0 };
  var a = 1;
  var s = null;
  var v = null;
  var l = null;
  var ok = false;
  var format = false;
  if (typeof color === "string") {
    color = stringInputToObject(color);
  }
  if (typeof color === "object") {
    if (isValidCSSUnit(color.r) && isValidCSSUnit(color.g) && isValidCSSUnit(color.b)) {
      rgb = rgbToRgb(color.r, color.g, color.b);
      ok = true;
      format = String(color.r).substr(-1) === "%" ? "prgb" : "rgb";
    } else if (isValidCSSUnit(color.h) && isValidCSSUnit(color.s) && isValidCSSUnit(color.v)) {
      s = convertToPercentage(color.s);
      v = convertToPercentage(color.v);
      rgb = hsvToRgb(color.h, s, v);
      ok = true;
      format = "hsv";
    } else if (isValidCSSUnit(color.h) && isValidCSSUnit(color.s) && isValidCSSUnit(color.l)) {
      s = convertToPercentage(color.s);
      l = convertToPercentage(color.l);
      rgb = hslToRgb(color.h, s, l);
      ok = true;
      format = "hsl";
    }
    if (Object.prototype.hasOwnProperty.call(color, "a")) {
      a = color.a;
    }
  }
  a = boundAlpha(a);
  return {
    ok,
    format: color.format || format,
    r: Math.min(255, Math.max(rgb.r, 0)),
    g: Math.min(255, Math.max(rgb.g, 0)),
    b: Math.min(255, Math.max(rgb.b, 0)),
    a
  };
}
var CSS_INTEGER = "[-\\+]?\\d+%?";
var CSS_NUMBER = "[-\\+]?\\d*\\.\\d+%?";
var CSS_UNIT = "(?:".concat(CSS_NUMBER, ")|(?:").concat(CSS_INTEGER, ")");
var PERMISSIVE_MATCH3 = "[\\s|\\(]+(".concat(CSS_UNIT, ")[,|\\s]+(").concat(CSS_UNIT, ")[,|\\s]+(").concat(CSS_UNIT, ")\\s*\\)?");
var PERMISSIVE_MATCH4 = "[\\s|\\(]+(".concat(CSS_UNIT, ")[,|\\s]+(").concat(CSS_UNIT, ")[,|\\s]+(").concat(CSS_UNIT, ")[,|\\s]+(").concat(CSS_UNIT, ")\\s*\\)?");
var matchers = {
  CSS_UNIT: new RegExp(CSS_UNIT),
  rgb: new RegExp("rgb" + PERMISSIVE_MATCH3),
  rgba: new RegExp("rgba" + PERMISSIVE_MATCH4),
  hsl: new RegExp("hsl" + PERMISSIVE_MATCH3),
  hsla: new RegExp("hsla" + PERMISSIVE_MATCH4),
  hsv: new RegExp("hsv" + PERMISSIVE_MATCH3),
  hsva: new RegExp("hsva" + PERMISSIVE_MATCH4),
  hex3: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,
  hex6: /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,
  hex4: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,
  hex8: /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/
};
function stringInputToObject(color) {
  color = color.trim().toLowerCase();
  if (color.length === 0) {
    return false;
  }
  var named = false;
  if (names[color]) {
    color = names[color];
    named = true;
  } else if (color === "transparent") {
    return { r: 0, g: 0, b: 0, a: 0, format: "name" };
  }
  var match = matchers.rgb.exec(color);
  if (match) {
    return { r: match[1], g: match[2], b: match[3] };
  }
  match = matchers.rgba.exec(color);
  if (match) {
    return { r: match[1], g: match[2], b: match[3], a: match[4] };
  }
  match = matchers.hsl.exec(color);
  if (match) {
    return { h: match[1], s: match[2], l: match[3] };
  }
  match = matchers.hsla.exec(color);
  if (match) {
    return { h: match[1], s: match[2], l: match[3], a: match[4] };
  }
  match = matchers.hsv.exec(color);
  if (match) {
    return { h: match[1], s: match[2], v: match[3] };
  }
  match = matchers.hsva.exec(color);
  if (match) {
    return { h: match[1], s: match[2], v: match[3], a: match[4] };
  }
  match = matchers.hex8.exec(color);
  if (match) {
    return {
      r: parseIntFromHex(match[1]),
      g: parseIntFromHex(match[2]),
      b: parseIntFromHex(match[3]),
      a: convertHexToDecimal(match[4]),
      format: named ? "name" : "hex8"
    };
  }
  match = matchers.hex6.exec(color);
  if (match) {
    return {
      r: parseIntFromHex(match[1]),
      g: parseIntFromHex(match[2]),
      b: parseIntFromHex(match[3]),
      format: named ? "name" : "hex"
    };
  }
  match = matchers.hex4.exec(color);
  if (match) {
    return {
      r: parseIntFromHex(match[1] + match[1]),
      g: parseIntFromHex(match[2] + match[2]),
      b: parseIntFromHex(match[3] + match[3]),
      a: convertHexToDecimal(match[4] + match[4]),
      format: named ? "name" : "hex8"
    };
  }
  match = matchers.hex3.exec(color);
  if (match) {
    return {
      r: parseIntFromHex(match[1] + match[1]),
      g: parseIntFromHex(match[2] + match[2]),
      b: parseIntFromHex(match[3] + match[3]),
      format: named ? "name" : "hex"
    };
  }
  return false;
}
function isValidCSSUnit(color) {
  return Boolean(matchers.CSS_UNIT.exec(String(color)));
}
var hueStep = 2;
var saturationStep = 0.16;
var saturationStep2 = 0.05;
var brightnessStep1 = 0.05;
var brightnessStep2 = 0.15;
var lightColorCount = 5;
var darkColorCount = 4;
var darkColorMap = [{
  index: 7,
  opacity: 0.15
}, {
  index: 6,
  opacity: 0.25
}, {
  index: 5,
  opacity: 0.3
}, {
  index: 5,
  opacity: 0.45
}, {
  index: 5,
  opacity: 0.65
}, {
  index: 5,
  opacity: 0.85
}, {
  index: 4,
  opacity: 0.9
}, {
  index: 3,
  opacity: 0.95
}, {
  index: 2,
  opacity: 0.97
}, {
  index: 1,
  opacity: 0.98
}];
function toHsv(_ref) {
  var r = _ref.r, g = _ref.g, b = _ref.b;
  var hsv = rgbToHsv(r, g, b);
  return {
    h: hsv.h * 360,
    s: hsv.s,
    v: hsv.v
  };
}
function toHex(_ref2) {
  var r = _ref2.r, g = _ref2.g, b = _ref2.b;
  return "#".concat(rgbToHex(r, g, b, false));
}
function mix(rgb1, rgb2, amount) {
  var p = amount / 100;
  var rgb = {
    r: (rgb2.r - rgb1.r) * p + rgb1.r,
    g: (rgb2.g - rgb1.g) * p + rgb1.g,
    b: (rgb2.b - rgb1.b) * p + rgb1.b
  };
  return rgb;
}
function getHue(hsv, i, light) {
  var hue;
  if (Math.round(hsv.h) >= 60 && Math.round(hsv.h) <= 240) {
    hue = light ? Math.round(hsv.h) - hueStep * i : Math.round(hsv.h) + hueStep * i;
  } else {
    hue = light ? Math.round(hsv.h) + hueStep * i : Math.round(hsv.h) - hueStep * i;
  }
  if (hue < 0) {
    hue += 360;
  } else if (hue >= 360) {
    hue -= 360;
  }
  return hue;
}
function getSaturation(hsv, i, light) {
  if (hsv.h === 0 && hsv.s === 0) {
    return hsv.s;
  }
  var saturation;
  if (light) {
    saturation = hsv.s - saturationStep * i;
  } else if (i === darkColorCount) {
    saturation = hsv.s + saturationStep;
  } else {
    saturation = hsv.s + saturationStep2 * i;
  }
  if (saturation > 1) {
    saturation = 1;
  }
  if (light && i === lightColorCount && saturation > 0.1) {
    saturation = 0.1;
  }
  if (saturation < 0.06) {
    saturation = 0.06;
  }
  return Number(saturation.toFixed(2));
}
function getValue(hsv, i, light) {
  var value;
  if (light) {
    value = hsv.v + brightnessStep1 * i;
  } else {
    value = hsv.v - brightnessStep2 * i;
  }
  if (value > 1) {
    value = 1;
  }
  return Number(value.toFixed(2));
}
function generate$1(color) {
  var opts = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
  var patterns = [];
  var pColor = inputToRGB(color);
  for (var i = lightColorCount; i > 0; i -= 1) {
    var hsv = toHsv(pColor);
    var colorString = toHex(inputToRGB({
      h: getHue(hsv, i, true),
      s: getSaturation(hsv, i, true),
      v: getValue(hsv, i, true)
    }));
    patterns.push(colorString);
  }
  patterns.push(toHex(pColor));
  for (var _i = 1; _i <= darkColorCount; _i += 1) {
    var _hsv = toHsv(pColor);
    var _colorString = toHex(inputToRGB({
      h: getHue(_hsv, _i),
      s: getSaturation(_hsv, _i),
      v: getValue(_hsv, _i)
    }));
    patterns.push(_colorString);
  }
  if (opts.theme === "dark") {
    return darkColorMap.map(function(_ref3) {
      var index2 = _ref3.index, opacity = _ref3.opacity;
      var darkColorString = toHex(mix(inputToRGB(opts.backgroundColor || "#141414"), inputToRGB(patterns[index2]), opacity * 100));
      return darkColorString;
    });
  }
  return patterns;
}
var presetPrimaryColors = {
  red: "#F5222D",
  volcano: "#FA541C",
  orange: "#FA8C16",
  gold: "#FAAD14",
  yellow: "#FADB14",
  lime: "#A0D911",
  green: "#52C41A",
  cyan: "#13C2C2",
  blue: "#1890FF",
  geekblue: "#2F54EB",
  purple: "#722ED1",
  magenta: "#EB2F96",
  grey: "#666666"
};
var presetPalettes = {};
var presetDarkPalettes = {};
Object.keys(presetPrimaryColors).forEach(function(key) {
  presetPalettes[key] = generate$1(presetPrimaryColors[key]);
  presetPalettes[key].primary = presetPalettes[key][5];
  presetDarkPalettes[key] = generate$1(presetPrimaryColors[key], {
    theme: "dark",
    backgroundColor: "#141414"
  });
  presetDarkPalettes[key].primary = presetDarkPalettes[key][5];
});
var containers = [];
var styleElements = [];
var usage = "insert-css: You need to provide a CSS string. Usage: insertCss(cssString[, options]).";
function createStyleElement() {
  var styleElement = document.createElement("style");
  styleElement.setAttribute("type", "text/css");
  return styleElement;
}
function insertCss(css, options) {
  options = options || {};
  if (css === void 0) {
    throw new Error(usage);
  }
  var position = options.prepend === true ? "prepend" : "append";
  var container = options.container !== void 0 ? options.container : document.querySelector("head");
  var containerId = containers.indexOf(container);
  if (containerId === -1) {
    containerId = containers.push(container) - 1;
    styleElements[containerId] = {};
  }
  var styleElement;
  if (styleElements[containerId] !== void 0 && styleElements[containerId][position] !== void 0) {
    styleElement = styleElements[containerId][position];
  } else {
    styleElement = styleElements[containerId][position] = createStyleElement();
    if (position === "prepend") {
      container.insertBefore(styleElement, container.childNodes[0]);
    } else {
      container.appendChild(styleElement);
    }
  }
  if (css.charCodeAt(0) === 65279) {
    css = css.substr(1, css.length);
  }
  if (styleElement.styleSheet) {
    styleElement.styleSheet.cssText += css;
  } else {
    styleElement.textContent += css;
  }
  return styleElement;
}
function _objectSpread$6(target) {
  for (var i = 1; i < arguments.length; i++) {
    var source2 = arguments[i] != null ? Object(arguments[i]) : {};
    var ownKeys = Object.keys(source2);
    if (typeof Object.getOwnPropertySymbols === "function") {
      ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source2).filter(function(sym) {
        return Object.getOwnPropertyDescriptor(source2, sym).enumerable;
      }));
    }
    ownKeys.forEach(function(key) {
      _defineProperty$6(target, key, source2[key]);
    });
  }
  return target;
}
function _defineProperty$6(obj, key, value) {
  if (key in obj) {
    Object.defineProperty(obj, key, { value, enumerable: true, configurable: true, writable: true });
  } else {
    obj[key] = value;
  }
  return obj;
}
function warning(valid, message2) {
}
function isIconDefinition(target) {
  return typeof target === "object" && typeof target.name === "string" && typeof target.theme === "string" && (typeof target.icon === "object" || typeof target.icon === "function");
}
function generate(node, key, rootProps) {
  if (!rootProps) {
    return h(node.tag, _objectSpread$6({
      key
    }, node.attrs), (node.children || []).map(function(child, index2) {
      return generate(child, "".concat(key, "-").concat(node.tag, "-").concat(index2));
    }));
  }
  return h(node.tag, _objectSpread$6({
    key
  }, rootProps, node.attrs), (node.children || []).map(function(child, index2) {
    return generate(child, "".concat(key, "-").concat(node.tag, "-").concat(index2));
  }));
}
function getSecondaryColor(primaryColor) {
  return generate$1(primaryColor)[0];
}
function normalizeTwoToneColors(twoToneColor) {
  if (!twoToneColor) {
    return [];
  }
  return Array.isArray(twoToneColor) ? twoToneColor : [twoToneColor];
}
var iconStyles = "\n.anticon {\n  display: inline-block;\n  color: inherit;\n  font-style: normal;\n  line-height: 0;\n  text-align: center;\n  text-transform: none;\n  vertical-align: -0.125em;\n  text-rendering: optimizeLegibility;\n  -webkit-font-smoothing: antialiased;\n  -moz-osx-font-smoothing: grayscale;\n}\n\n.anticon > * {\n  line-height: 1;\n}\n\n.anticon svg {\n  display: inline-block;\n}\n\n.anticon::before {\n  display: none;\n}\n\n.anticon .anticon-icon {\n  display: block;\n}\n\n.anticon[tabindex] {\n  cursor: pointer;\n}\n\n.anticon-spin::before,\n.anticon-spin {\n  display: inline-block;\n  -webkit-animation: loadingCircle 1s infinite linear;\n  animation: loadingCircle 1s infinite linear;\n}\n\n@-webkit-keyframes loadingCircle {\n  100% {\n    -webkit-transform: rotate(360deg);\n    transform: rotate(360deg);\n  }\n}\n\n@keyframes loadingCircle {\n  100% {\n    -webkit-transform: rotate(360deg);\n    transform: rotate(360deg);\n  }\n}\n";
var cssInjectedFlag = false;
var useInsertStyles = function useInsertStyles2() {
  var styleStr = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : iconStyles;
  nextTick(function() {
    if (!cssInjectedFlag) {
      if (typeof window !== "undefined" && window.document && window.document.documentElement) {
        insertCss(styleStr, {
          prepend: true
        });
      }
      cssInjectedFlag = true;
    }
  });
};
var _excluded$1 = ["icon", "primaryColor", "secondaryColor"];
function _objectWithoutProperties$1(source2, excluded) {
  if (source2 == null)
    return {};
  var target = _objectWithoutPropertiesLoose$1(source2, excluded);
  var key, i;
  if (Object.getOwnPropertySymbols) {
    var sourceSymbolKeys = Object.getOwnPropertySymbols(source2);
    for (i = 0; i < sourceSymbolKeys.length; i++) {
      key = sourceSymbolKeys[i];
      if (excluded.indexOf(key) >= 0)
        continue;
      if (!Object.prototype.propertyIsEnumerable.call(source2, key))
        continue;
      target[key] = source2[key];
    }
  }
  return target;
}
function _objectWithoutPropertiesLoose$1(source2, excluded) {
  if (source2 == null)
    return {};
  var target = {};
  var sourceKeys = Object.keys(source2);
  var key, i;
  for (i = 0; i < sourceKeys.length; i++) {
    key = sourceKeys[i];
    if (excluded.indexOf(key) >= 0)
      continue;
    target[key] = source2[key];
  }
  return target;
}
function _objectSpread$5(target) {
  for (var i = 1; i < arguments.length; i++) {
    var source2 = arguments[i] != null ? Object(arguments[i]) : {};
    var ownKeys = Object.keys(source2);
    if (typeof Object.getOwnPropertySymbols === "function") {
      ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source2).filter(function(sym) {
        return Object.getOwnPropertyDescriptor(source2, sym).enumerable;
      }));
    }
    ownKeys.forEach(function(key) {
      _defineProperty$5(target, key, source2[key]);
    });
  }
  return target;
}
function _defineProperty$5(obj, key, value) {
  if (key in obj) {
    Object.defineProperty(obj, key, { value, enumerable: true, configurable: true, writable: true });
  } else {
    obj[key] = value;
  }
  return obj;
}
var twoToneColorPalette = {
  primaryColor: "#333",
  secondaryColor: "#E6E6E6",
  calculated: false
};
function setTwoToneColors(_ref) {
  var primaryColor = _ref.primaryColor, secondaryColor = _ref.secondaryColor;
  twoToneColorPalette.primaryColor = primaryColor;
  twoToneColorPalette.secondaryColor = secondaryColor || getSecondaryColor(primaryColor);
  twoToneColorPalette.calculated = !!secondaryColor;
}
function getTwoToneColors() {
  return _objectSpread$5({}, twoToneColorPalette);
}
var IconBase = function IconBase2(props, context) {
  var _props$context$attrs = _objectSpread$5({}, props, context.attrs), icon = _props$context$attrs.icon, primaryColor = _props$context$attrs.primaryColor, secondaryColor = _props$context$attrs.secondaryColor, restProps = _objectWithoutProperties$1(_props$context$attrs, _excluded$1);
  var colors = twoToneColorPalette;
  if (primaryColor) {
    colors = {
      primaryColor,
      secondaryColor: secondaryColor || getSecondaryColor(primaryColor)
    };
  }
  useInsertStyles();
  warning(isIconDefinition(icon));
  if (!isIconDefinition(icon)) {
    return null;
  }
  var target = icon;
  if (target && typeof target.icon === "function") {
    target = _objectSpread$5({}, target, {
      icon: target.icon(colors.primaryColor, colors.secondaryColor)
    });
  }
  return generate(target.icon, "svg-".concat(target.name), _objectSpread$5({}, restProps, {
    "data-icon": target.name,
    width: "1em",
    height: "1em",
    fill: "currentColor",
    "aria-hidden": "true"
  }));
};
IconBase.props = {
  icon: Object,
  primaryColor: String,
  secondaryColor: String,
  focusable: String
};
IconBase.inheritAttrs = false;
IconBase.displayName = "IconBase";
IconBase.getTwoToneColors = getTwoToneColors;
IconBase.setTwoToneColors = setTwoToneColors;
var VueIcon = IconBase;
function _slicedToArray$1(arr, i) {
  return _arrayWithHoles$1(arr) || _iterableToArrayLimit$1(arr, i) || _unsupportedIterableToArray$1(arr, i) || _nonIterableRest$1();
}
function _nonIterableRest$1() {
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
}
function _unsupportedIterableToArray$1(o, minLen) {
  if (!o)
    return;
  if (typeof o === "string")
    return _arrayLikeToArray$1(o, minLen);
  var n = Object.prototype.toString.call(o).slice(8, -1);
  if (n === "Object" && o.constructor)
    n = o.constructor.name;
  if (n === "Map" || n === "Set")
    return Array.from(o);
  if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
    return _arrayLikeToArray$1(o, minLen);
}
function _arrayLikeToArray$1(arr, len) {
  if (len == null || len > arr.length)
    len = arr.length;
  for (var i = 0, arr2 = new Array(len); i < len; i++) {
    arr2[i] = arr[i];
  }
  return arr2;
}
function _iterableToArrayLimit$1(arr, i) {
  var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
  if (_i == null)
    return;
  var _arr = [];
  var _n = true;
  var _d = false;
  var _s, _e;
  try {
    for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
      _arr.push(_s.value);
      if (i && _arr.length === i)
        break;
    }
  } catch (err) {
    _d = true;
    _e = err;
  } finally {
    try {
      if (!_n && _i["return"] != null)
        _i["return"]();
    } finally {
      if (_d)
        throw _e;
    }
  }
  return _arr;
}
function _arrayWithHoles$1(arr) {
  if (Array.isArray(arr))
    return arr;
}
function setTwoToneColor(twoToneColor) {
  var _normalizeTwoToneColo = normalizeTwoToneColors(twoToneColor), _normalizeTwoToneColo2 = _slicedToArray$1(_normalizeTwoToneColo, 2), primaryColor = _normalizeTwoToneColo2[0], secondaryColor = _normalizeTwoToneColo2[1];
  return VueIcon.setTwoToneColors({
    primaryColor,
    secondaryColor
  });
}
function getTwoToneColor() {
  var colors = VueIcon.getTwoToneColors();
  if (!colors.calculated) {
    return colors.primaryColor;
  }
  return [colors.primaryColor, colors.secondaryColor];
}
var _excluded = ["class", "icon", "spin", "rotate", "tabindex", "twoToneColor", "onClick"];
function _slicedToArray(arr, i) {
  return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
}
function _nonIterableRest() {
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
}
function _unsupportedIterableToArray(o, minLen) {
  if (!o)
    return;
  if (typeof o === "string")
    return _arrayLikeToArray(o, minLen);
  var n = Object.prototype.toString.call(o).slice(8, -1);
  if (n === "Object" && o.constructor)
    n = o.constructor.name;
  if (n === "Map" || n === "Set")
    return Array.from(o);
  if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
    return _arrayLikeToArray(o, minLen);
}
function _arrayLikeToArray(arr, len) {
  if (len == null || len > arr.length)
    len = arr.length;
  for (var i = 0, arr2 = new Array(len); i < len; i++) {
    arr2[i] = arr[i];
  }
  return arr2;
}
function _iterableToArrayLimit(arr, i) {
  var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
  if (_i == null)
    return;
  var _arr = [];
  var _n = true;
  var _d = false;
  var _s, _e;
  try {
    for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
      _arr.push(_s.value);
      if (i && _arr.length === i)
        break;
    }
  } catch (err) {
    _d = true;
    _e = err;
  } finally {
    try {
      if (!_n && _i["return"] != null)
        _i["return"]();
    } finally {
      if (_d)
        throw _e;
    }
  }
  return _arr;
}
function _arrayWithHoles(arr) {
  if (Array.isArray(arr))
    return arr;
}
function _objectSpread$4(target) {
  for (var i = 1; i < arguments.length; i++) {
    var source2 = arguments[i] != null ? Object(arguments[i]) : {};
    var ownKeys = Object.keys(source2);
    if (typeof Object.getOwnPropertySymbols === "function") {
      ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source2).filter(function(sym) {
        return Object.getOwnPropertyDescriptor(source2, sym).enumerable;
      }));
    }
    ownKeys.forEach(function(key) {
      _defineProperty$4(target, key, source2[key]);
    });
  }
  return target;
}
function _defineProperty$4(obj, key, value) {
  if (key in obj) {
    Object.defineProperty(obj, key, { value, enumerable: true, configurable: true, writable: true });
  } else {
    obj[key] = value;
  }
  return obj;
}
function _objectWithoutProperties(source2, excluded) {
  if (source2 == null)
    return {};
  var target = _objectWithoutPropertiesLoose(source2, excluded);
  var key, i;
  if (Object.getOwnPropertySymbols) {
    var sourceSymbolKeys = Object.getOwnPropertySymbols(source2);
    for (i = 0; i < sourceSymbolKeys.length; i++) {
      key = sourceSymbolKeys[i];
      if (excluded.indexOf(key) >= 0)
        continue;
      if (!Object.prototype.propertyIsEnumerable.call(source2, key))
        continue;
      target[key] = source2[key];
    }
  }
  return target;
}
function _objectWithoutPropertiesLoose(source2, excluded) {
  if (source2 == null)
    return {};
  var target = {};
  var sourceKeys = Object.keys(source2);
  var key, i;
  for (i = 0; i < sourceKeys.length; i++) {
    key = sourceKeys[i];
    if (excluded.indexOf(key) >= 0)
      continue;
    target[key] = source2[key];
  }
  return target;
}
setTwoToneColor("#1890ff");
var Icon = function Icon2(props, context) {
  var _classObj;
  var _props$context$attrs = _objectSpread$4({}, props, context.attrs), cls = _props$context$attrs["class"], icon = _props$context$attrs.icon, spin = _props$context$attrs.spin, rotate = _props$context$attrs.rotate, tabindex = _props$context$attrs.tabindex, twoToneColor = _props$context$attrs.twoToneColor, onClick = _props$context$attrs.onClick, restProps = _objectWithoutProperties(_props$context$attrs, _excluded);
  var classObj = (_classObj = {
    anticon: true
  }, _defineProperty$4(_classObj, "anticon-".concat(icon.name), Boolean(icon.name)), _defineProperty$4(_classObj, cls, cls), _classObj);
  var svgClassString = spin === "" || !!spin || icon.name === "loading" ? "anticon-spin" : "";
  var iconTabIndex = tabindex;
  if (iconTabIndex === void 0 && onClick) {
    iconTabIndex = -1;
    restProps.tabindex = iconTabIndex;
  }
  var svgStyle = rotate ? {
    msTransform: "rotate(".concat(rotate, "deg)"),
    transform: "rotate(".concat(rotate, "deg)")
  } : void 0;
  var _normalizeTwoToneColo = normalizeTwoToneColors(twoToneColor), _normalizeTwoToneColo2 = _slicedToArray(_normalizeTwoToneColo, 2), primaryColor = _normalizeTwoToneColo2[0], secondaryColor = _normalizeTwoToneColo2[1];
  return createVNode("span", _objectSpread$4({
    "role": "img",
    "aria-label": icon.name
  }, restProps, {
    "onClick": onClick,
    "class": classObj
  }), [createVNode(VueIcon, {
    "class": svgClassString,
    "icon": icon,
    "primaryColor": primaryColor,
    "secondaryColor": secondaryColor,
    "style": svgStyle
  }, null)]);
};
Icon.props = {
  spin: Boolean,
  rotate: Number,
  icon: Object,
  twoToneColor: String
};
Icon.displayName = "AntdIcon";
Icon.inheritAttrs = false;
Icon.getTwoToneColor = getTwoToneColor;
Icon.setTwoToneColor = setTwoToneColor;
var AntdIcon = Icon;
var ExclamationCircleOutlined$2 = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z" } }, { "tag": "path", "attrs": { "d": "M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z" } }] }, "name": "exclamation-circle", "theme": "outlined" };
var ExclamationCircleOutlinedSvg = ExclamationCircleOutlined$2;
function _objectSpread$3(target) {
  for (var i = 1; i < arguments.length; i++) {
    var source2 = arguments[i] != null ? Object(arguments[i]) : {};
    var ownKeys = Object.keys(source2);
    if (typeof Object.getOwnPropertySymbols === "function") {
      ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source2).filter(function(sym) {
        return Object.getOwnPropertyDescriptor(source2, sym).enumerable;
      }));
    }
    ownKeys.forEach(function(key) {
      _defineProperty$3(target, key, source2[key]);
    });
  }
  return target;
}
function _defineProperty$3(obj, key, value) {
  if (key in obj) {
    Object.defineProperty(obj, key, { value, enumerable: true, configurable: true, writable: true });
  } else {
    obj[key] = value;
  }
  return obj;
}
var ExclamationCircleOutlined = function ExclamationCircleOutlined2(props, context) {
  var p = _objectSpread$3({}, props, context.attrs);
  return createVNode(AntdIcon, _objectSpread$3({}, p, {
    "icon": ExclamationCircleOutlinedSvg
  }), null);
};
ExclamationCircleOutlined.displayName = "ExclamationCircleOutlined";
ExclamationCircleOutlined.inheritAttrs = false;
var ExclamationCircleOutlined$1 = ExclamationCircleOutlined;
var InboxOutlined$2 = { "icon": { "tag": "svg", "attrs": { "viewBox": "0 0 1024 1024", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M885.2 446.3l-.2-.8-112.2-285.1c-5-16.1-19.9-27.2-36.8-27.2H281.2c-17 0-32.1 11.3-36.9 27.6L139.4 443l-.3.7-.2.8c-1.3 4.9-1.7 9.9-1 14.8-.1 1.6-.2 3.2-.2 4.8V830a60.9 60.9 0 0060.8 60.8h627.2c33.5 0 60.8-27.3 60.9-60.8V464.1c0-1.3 0-2.6-.1-3.7.4-4.9 0-9.6-1.3-14.1zm-295.8-43l-.3 15.7c-.8 44.9-31.8 75.1-77.1 75.1-22.1 0-41.1-7.1-54.8-20.6S436 441.2 435.6 419l-.3-15.7H229.5L309 210h399.2l81.7 193.3H589.4zm-375 76.8h157.3c24.3 57.1 76 90.8 140.4 90.8 33.7 0 65-9.4 90.3-27.2 22.2-15.6 39.5-37.4 50.7-63.6h156.5V814H214.4V480.1z" } }] }, "name": "inbox", "theme": "outlined" };
var InboxOutlinedSvg = InboxOutlined$2;
function _objectSpread$2(target) {
  for (var i = 1; i < arguments.length; i++) {
    var source2 = arguments[i] != null ? Object(arguments[i]) : {};
    var ownKeys = Object.keys(source2);
    if (typeof Object.getOwnPropertySymbols === "function") {
      ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source2).filter(function(sym) {
        return Object.getOwnPropertyDescriptor(source2, sym).enumerable;
      }));
    }
    ownKeys.forEach(function(key) {
      _defineProperty$2(target, key, source2[key]);
    });
  }
  return target;
}
function _defineProperty$2(obj, key, value) {
  if (key in obj) {
    Object.defineProperty(obj, key, { value, enumerable: true, configurable: true, writable: true });
  } else {
    obj[key] = value;
  }
  return obj;
}
var InboxOutlined = function InboxOutlined2(props, context) {
  var p = _objectSpread$2({}, props, context.attrs);
  return createVNode(AntdIcon, _objectSpread$2({}, p, {
    "icon": InboxOutlinedSvg
  }), null);
};
InboxOutlined.displayName = "InboxOutlined";
InboxOutlined.inheritAttrs = false;
var InboxOutlined$1 = InboxOutlined;
var SearchOutlined$2 = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z" } }] }, "name": "search", "theme": "outlined" };
var SearchOutlinedSvg = SearchOutlined$2;
function _objectSpread$1(target) {
  for (var i = 1; i < arguments.length; i++) {
    var source2 = arguments[i] != null ? Object(arguments[i]) : {};
    var ownKeys = Object.keys(source2);
    if (typeof Object.getOwnPropertySymbols === "function") {
      ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source2).filter(function(sym) {
        return Object.getOwnPropertyDescriptor(source2, sym).enumerable;
      }));
    }
    ownKeys.forEach(function(key) {
      _defineProperty$1(target, key, source2[key]);
    });
  }
  return target;
}
function _defineProperty$1(obj, key, value) {
  if (key in obj) {
    Object.defineProperty(obj, key, { value, enumerable: true, configurable: true, writable: true });
  } else {
    obj[key] = value;
  }
  return obj;
}
var SearchOutlined = function SearchOutlined2(props, context) {
  var p = _objectSpread$1({}, props, context.attrs);
  return createVNode(AntdIcon, _objectSpread$1({}, p, {
    "icon": SearchOutlinedSvg
  }), null);
};
SearchOutlined.displayName = "SearchOutlined";
SearchOutlined.inheritAttrs = false;
var SearchOutlined$1 = SearchOutlined;
var SyncOutlined$2 = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M168 504.2c1-43.7 10-86.1 26.9-126 17.3-41 42.1-77.7 73.7-109.4S337 212.3 378 195c42.4-17.9 87.4-27 133.9-27s91.5 9.1 133.8 27A341.5 341.5 0 01755 268.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 003 14.1l175.7 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c0-6.7-7.7-10.5-12.9-6.3l-56.4 44.1C765.8 155.1 646.2 92 511.8 92 282.7 92 96.3 275.6 92 503.8a8 8 0 008 8.2h60c4.4 0 7.9-3.5 8-7.8zm756 7.8h-60c-4.4 0-7.9 3.5-8 7.8-1 43.7-10 86.1-26.9 126-17.3 41-42.1 77.8-73.7 109.4A342.45 342.45 0 01512.1 856a342.24 342.24 0 01-243.2-100.8c-9.9-9.9-19.2-20.4-27.8-31.4l60.2-47a8 8 0 00-3-14.1l-175.7-43c-5-1.2-9.9 2.6-9.9 7.7l-.7 181c0 6.7 7.7 10.5 12.9 6.3l56.4-44.1C258.2 868.9 377.8 932 512.2 932c229.2 0 415.5-183.7 419.8-411.8a8 8 0 00-8-8.2z" } }] }, "name": "sync", "theme": "outlined" };
var SyncOutlinedSvg = SyncOutlined$2;
function _objectSpread(target) {
  for (var i = 1; i < arguments.length; i++) {
    var source2 = arguments[i] != null ? Object(arguments[i]) : {};
    var ownKeys = Object.keys(source2);
    if (typeof Object.getOwnPropertySymbols === "function") {
      ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source2).filter(function(sym) {
        return Object.getOwnPropertyDescriptor(source2, sym).enumerable;
      }));
    }
    ownKeys.forEach(function(key) {
      _defineProperty(target, key, source2[key]);
    });
  }
  return target;
}
function _defineProperty(obj, key, value) {
  if (key in obj) {
    Object.defineProperty(obj, key, { value, enumerable: true, configurable: true, writable: true });
  } else {
    obj[key] = value;
  }
  return obj;
}
var SyncOutlined = function SyncOutlined2(props, context) {
  var p = _objectSpread({}, props, context.attrs);
  return createVNode(AntdIcon, _objectSpread({}, p, {
    "icon": SyncOutlinedSvg
  }), null);
};
SyncOutlined.displayName = "SyncOutlined";
SyncOutlined.inheritAttrs = false;
var SyncOutlined$1 = SyncOutlined;
function isExist(val) {
  return typeof val !== "undefined" && val !== null;
}
const usePagination = (option = {}) => {
  const onChange = function(page, pageSize) {
    pagination.current = page;
    option.onChange && option.onChange(page, pageSize);
  };
  const onShowSizeChange = function(current, pageSize) {
    pagination.current = 1;
    pagination.pageSize = pageSize;
    option.onShowSizeChange && option.onShowSizeChange(current, pageSize);
  };
  function setCurrentPage(page) {
    pagination.current = page;
  }
  function getTotal() {
    return pagination.total;
  }
  const pagination = reactive({
    total: 0,
    pageSize: isExist(option.pageSize) ? option.pageSize : 10,
    current: 1,
    hideOnSinglePage: isExist(option.hideOnSinglePage) ? option.hideOnSinglePage : false,
    showSizeChanger: isExist(option.showSizeChanger) ? option.showSizeChanger : true,
    showQuickJumper: isExist(option.showQuickJumper) ? option.showQuickJumper : true,
    showLessItems: isExist(option.showLessItems) ? option.showLessItems : true,
    pageSizeOptions: option["pageSizeOptions"] ? option["pageSizeOptions"] : ["10", "20", "30", "40"],
    showTotal: (total) => `\u5171 ${total} \u6761\u6570\u636E`,
    onChange,
    onShowSizeChange
  });
  return {
    pagination,
    setCurrentPage,
    getTotal
  };
};
function bind(fn, thisArg) {
  return function wrap() {
    return fn.apply(thisArg, arguments);
  };
}
const { toString } = Object.prototype;
const { getPrototypeOf } = Object;
const kindOf = ((cache) => (thing) => {
  const str = toString.call(thing);
  return cache[str] || (cache[str] = str.slice(8, -1).toLowerCase());
})(/* @__PURE__ */ Object.create(null));
const kindOfTest = (type) => {
  type = type.toLowerCase();
  return (thing) => kindOf(thing) === type;
};
const typeOfTest = (type) => (thing) => typeof thing === type;
const { isArray } = Array;
const isUndefined = typeOfTest("undefined");
function isBuffer(val) {
  return val !== null && !isUndefined(val) && val.constructor !== null && !isUndefined(val.constructor) && isFunction(val.constructor.isBuffer) && val.constructor.isBuffer(val);
}
const isArrayBuffer = kindOfTest("ArrayBuffer");
function isArrayBufferView(val) {
  let result;
  if (typeof ArrayBuffer !== "undefined" && ArrayBuffer.isView) {
    result = ArrayBuffer.isView(val);
  } else {
    result = val && val.buffer && isArrayBuffer(val.buffer);
  }
  return result;
}
const isString = typeOfTest("string");
const isFunction = typeOfTest("function");
const isNumber = typeOfTest("number");
const isObject = (thing) => thing !== null && typeof thing === "object";
const isBoolean = (thing) => thing === true || thing === false;
const isPlainObject = (val) => {
  if (kindOf(val) !== "object") {
    return false;
  }
  const prototype2 = getPrototypeOf(val);
  return (prototype2 === null || prototype2 === Object.prototype || Object.getPrototypeOf(prototype2) === null) && !(Symbol.toStringTag in val) && !(Symbol.iterator in val);
};
const isDate = kindOfTest("Date");
const isFile = kindOfTest("File");
const isBlob = kindOfTest("Blob");
const isFileList = kindOfTest("FileList");
const isStream = (val) => isObject(val) && isFunction(val.pipe);
const isFormData = (thing) => {
  const pattern = "[object FormData]";
  return thing && (typeof FormData === "function" && thing instanceof FormData || toString.call(thing) === pattern || isFunction(thing.toString) && thing.toString() === pattern);
};
const isURLSearchParams = kindOfTest("URLSearchParams");
const trim = (str) => str.trim ? str.trim() : str.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
function forEach(obj, fn, { allOwnKeys = false } = {}) {
  if (obj === null || typeof obj === "undefined") {
    return;
  }
  let i;
  let l;
  if (typeof obj !== "object") {
    obj = [obj];
  }
  if (isArray(obj)) {
    for (i = 0, l = obj.length; i < l; i++) {
      fn.call(null, obj[i], i, obj);
    }
  } else {
    const keys = allOwnKeys ? Object.getOwnPropertyNames(obj) : Object.keys(obj);
    const len = keys.length;
    let key;
    for (i = 0; i < len; i++) {
      key = keys[i];
      fn.call(null, obj[key], key, obj);
    }
  }
}
function findKey(obj, key) {
  key = key.toLowerCase();
  const keys = Object.keys(obj);
  let i = keys.length;
  let _key;
  while (i-- > 0) {
    _key = keys[i];
    if (key === _key.toLowerCase()) {
      return _key;
    }
  }
  return null;
}
const _global = (() => {
  if (typeof globalThis !== "undefined")
    return globalThis;
  return typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : global;
})();
const isContextDefined = (context) => !isUndefined(context) && context !== _global;
function merge() {
  const { caseless } = isContextDefined(this) && this || {};
  const result = {};
  const assignValue = (val, key) => {
    const targetKey = caseless && findKey(result, key) || key;
    if (isPlainObject(result[targetKey]) && isPlainObject(val)) {
      result[targetKey] = merge(result[targetKey], val);
    } else if (isPlainObject(val)) {
      result[targetKey] = merge({}, val);
    } else if (isArray(val)) {
      result[targetKey] = val.slice();
    } else {
      result[targetKey] = val;
    }
  };
  for (let i = 0, l = arguments.length; i < l; i++) {
    arguments[i] && forEach(arguments[i], assignValue);
  }
  return result;
}
const extend = (a, b, thisArg, { allOwnKeys } = {}) => {
  forEach(b, (val, key) => {
    if (thisArg && isFunction(val)) {
      a[key] = bind(val, thisArg);
    } else {
      a[key] = val;
    }
  }, { allOwnKeys });
  return a;
};
const stripBOM = (content) => {
  if (content.charCodeAt(0) === 65279) {
    content = content.slice(1);
  }
  return content;
};
const inherits = (constructor, superConstructor, props, descriptors2) => {
  constructor.prototype = Object.create(superConstructor.prototype, descriptors2);
  constructor.prototype.constructor = constructor;
  Object.defineProperty(constructor, "super", {
    value: superConstructor.prototype
  });
  props && Object.assign(constructor.prototype, props);
};
const toFlatObject = (sourceObj, destObj, filter2, propFilter) => {
  let props;
  let i;
  let prop;
  const merged = {};
  destObj = destObj || {};
  if (sourceObj == null)
    return destObj;
  do {
    props = Object.getOwnPropertyNames(sourceObj);
    i = props.length;
    while (i-- > 0) {
      prop = props[i];
      if ((!propFilter || propFilter(prop, sourceObj, destObj)) && !merged[prop]) {
        destObj[prop] = sourceObj[prop];
        merged[prop] = true;
      }
    }
    sourceObj = filter2 !== false && getPrototypeOf(sourceObj);
  } while (sourceObj && (!filter2 || filter2(sourceObj, destObj)) && sourceObj !== Object.prototype);
  return destObj;
};
const endsWith = (str, searchString, position) => {
  str = String(str);
  if (position === void 0 || position > str.length) {
    position = str.length;
  }
  position -= searchString.length;
  const lastIndex = str.indexOf(searchString, position);
  return lastIndex !== -1 && lastIndex === position;
};
const toArray = (thing) => {
  if (!thing)
    return null;
  if (isArray(thing))
    return thing;
  let i = thing.length;
  if (!isNumber(i))
    return null;
  const arr = new Array(i);
  while (i-- > 0) {
    arr[i] = thing[i];
  }
  return arr;
};
const isTypedArray = ((TypedArray) => {
  return (thing) => {
    return TypedArray && thing instanceof TypedArray;
  };
})(typeof Uint8Array !== "undefined" && getPrototypeOf(Uint8Array));
const forEachEntry = (obj, fn) => {
  const generator = obj && obj[Symbol.iterator];
  const iterator = generator.call(obj);
  let result;
  while ((result = iterator.next()) && !result.done) {
    const pair = result.value;
    fn.call(obj, pair[0], pair[1]);
  }
};
const matchAll = (regExp, str) => {
  let matches;
  const arr = [];
  while ((matches = regExp.exec(str)) !== null) {
    arr.push(matches);
  }
  return arr;
};
const isHTMLForm = kindOfTest("HTMLFormElement");
const toCamelCase = (str) => {
  return str.toLowerCase().replace(
    /[-_\s]([a-z\d])(\w*)/g,
    function replacer(m, p1, p2) {
      return p1.toUpperCase() + p2;
    }
  );
};
const hasOwnProperty = (({ hasOwnProperty: hasOwnProperty2 }) => (obj, prop) => hasOwnProperty2.call(obj, prop))(Object.prototype);
const isRegExp = kindOfTest("RegExp");
const reduceDescriptors = (obj, reducer) => {
  const descriptors2 = Object.getOwnPropertyDescriptors(obj);
  const reducedDescriptors = {};
  forEach(descriptors2, (descriptor, name) => {
    if (reducer(descriptor, name, obj) !== false) {
      reducedDescriptors[name] = descriptor;
    }
  });
  Object.defineProperties(obj, reducedDescriptors);
};
const freezeMethods = (obj) => {
  reduceDescriptors(obj, (descriptor, name) => {
    if (isFunction(obj) && ["arguments", "caller", "callee"].indexOf(name) !== -1) {
      return false;
    }
    const value = obj[name];
    if (!isFunction(value))
      return;
    descriptor.enumerable = false;
    if ("writable" in descriptor) {
      descriptor.writable = false;
      return;
    }
    if (!descriptor.set) {
      descriptor.set = () => {
        throw Error("Can not rewrite read-only method '" + name + "'");
      };
    }
  });
};
const toObjectSet = (arrayOrString, delimiter) => {
  const obj = {};
  const define = (arr) => {
    arr.forEach((value) => {
      obj[value] = true;
    });
  };
  isArray(arrayOrString) ? define(arrayOrString) : define(String(arrayOrString).split(delimiter));
  return obj;
};
const noop = () => {
};
const toFiniteNumber = (value, defaultValue) => {
  value = +value;
  return Number.isFinite(value) ? value : defaultValue;
};
const ALPHA = "abcdefghijklmnopqrstuvwxyz";
const DIGIT = "0123456789";
const ALPHABET = {
  DIGIT,
  ALPHA,
  ALPHA_DIGIT: ALPHA + ALPHA.toUpperCase() + DIGIT
};
const generateString = (size = 16, alphabet = ALPHABET.ALPHA_DIGIT) => {
  let str = "";
  const { length } = alphabet;
  while (size--) {
    str += alphabet[Math.random() * length | 0];
  }
  return str;
};
function isSpecCompliantForm(thing) {
  return !!(thing && isFunction(thing.append) && thing[Symbol.toStringTag] === "FormData" && thing[Symbol.iterator]);
}
const toJSONObject = (obj) => {
  const stack = new Array(10);
  const visit = (source2, i) => {
    if (isObject(source2)) {
      if (stack.indexOf(source2) >= 0) {
        return;
      }
      if (!("toJSON" in source2)) {
        stack[i] = source2;
        const target = isArray(source2) ? [] : {};
        forEach(source2, (value, key) => {
          const reducedValue = visit(value, i + 1);
          !isUndefined(reducedValue) && (target[key] = reducedValue);
        });
        stack[i] = void 0;
        return target;
      }
    }
    return source2;
  };
  return visit(obj, 0);
};
var utils = {
  isArray,
  isArrayBuffer,
  isBuffer,
  isFormData,
  isArrayBufferView,
  isString,
  isNumber,
  isBoolean,
  isObject,
  isPlainObject,
  isUndefined,
  isDate,
  isFile,
  isBlob,
  isRegExp,
  isFunction,
  isStream,
  isURLSearchParams,
  isTypedArray,
  isFileList,
  forEach,
  merge,
  extend,
  trim,
  stripBOM,
  inherits,
  toFlatObject,
  kindOf,
  kindOfTest,
  endsWith,
  toArray,
  forEachEntry,
  matchAll,
  isHTMLForm,
  hasOwnProperty,
  hasOwnProp: hasOwnProperty,
  reduceDescriptors,
  freezeMethods,
  toObjectSet,
  toCamelCase,
  noop,
  toFiniteNumber,
  findKey,
  global: _global,
  isContextDefined,
  ALPHABET,
  generateString,
  isSpecCompliantForm,
  toJSONObject
};
function AxiosError(message2, code, config2, request2, response) {
  Error.call(this);
  if (Error.captureStackTrace) {
    Error.captureStackTrace(this, this.constructor);
  } else {
    this.stack = new Error().stack;
  }
  this.message = message2;
  this.name = "AxiosError";
  code && (this.code = code);
  config2 && (this.config = config2);
  request2 && (this.request = request2);
  response && (this.response = response);
}
utils.inherits(AxiosError, Error, {
  toJSON: function toJSON() {
    return {
      message: this.message,
      name: this.name,
      description: this.description,
      number: this.number,
      fileName: this.fileName,
      lineNumber: this.lineNumber,
      columnNumber: this.columnNumber,
      stack: this.stack,
      config: utils.toJSONObject(this.config),
      code: this.code,
      status: this.response && this.response.status ? this.response.status : null
    };
  }
});
const prototype$1 = AxiosError.prototype;
const descriptors = {};
[
  "ERR_BAD_OPTION_VALUE",
  "ERR_BAD_OPTION",
  "ECONNABORTED",
  "ETIMEDOUT",
  "ERR_NETWORK",
  "ERR_FR_TOO_MANY_REDIRECTS",
  "ERR_DEPRECATED",
  "ERR_BAD_RESPONSE",
  "ERR_BAD_REQUEST",
  "ERR_CANCELED",
  "ERR_NOT_SUPPORT",
  "ERR_INVALID_URL"
].forEach((code) => {
  descriptors[code] = { value: code };
});
Object.defineProperties(AxiosError, descriptors);
Object.defineProperty(prototype$1, "isAxiosError", { value: true });
AxiosError.from = (error, code, config2, request2, response, customProps) => {
  const axiosError = Object.create(prototype$1);
  utils.toFlatObject(error, axiosError, function filter2(obj) {
    return obj !== Error.prototype;
  }, (prop) => {
    return prop !== "isAxiosError";
  });
  AxiosError.call(axiosError, error.message, code, config2, request2, response);
  axiosError.cause = error;
  axiosError.name = error.name;
  customProps && Object.assign(axiosError, customProps);
  return axiosError;
};
var httpAdapter = null;
function isVisitable(thing) {
  return utils.isPlainObject(thing) || utils.isArray(thing);
}
function removeBrackets(key) {
  return utils.endsWith(key, "[]") ? key.slice(0, -2) : key;
}
function renderKey(path, key, dots) {
  if (!path)
    return key;
  return path.concat(key).map(function each(token, i) {
    token = removeBrackets(token);
    return !dots && i ? "[" + token + "]" : token;
  }).join(dots ? "." : "");
}
function isFlatArray(arr) {
  return utils.isArray(arr) && !arr.some(isVisitable);
}
const predicates = utils.toFlatObject(utils, {}, null, function filter(prop) {
  return /^is[A-Z]/.test(prop);
});
function toFormData(obj, formData, options) {
  if (!utils.isObject(obj)) {
    throw new TypeError("target must be an object");
  }
  formData = formData || new FormData();
  options = utils.toFlatObject(options, {
    metaTokens: true,
    dots: false,
    indexes: false
  }, false, function defined(option, source2) {
    return !utils.isUndefined(source2[option]);
  });
  const metaTokens = options.metaTokens;
  const visitor = options.visitor || defaultVisitor;
  const dots = options.dots;
  const indexes = options.indexes;
  const _Blob = options.Blob || typeof Blob !== "undefined" && Blob;
  const useBlob = _Blob && utils.isSpecCompliantForm(formData);
  if (!utils.isFunction(visitor)) {
    throw new TypeError("visitor must be a function");
  }
  function convertValue(value) {
    if (value === null)
      return "";
    if (utils.isDate(value)) {
      return value.toISOString();
    }
    if (!useBlob && utils.isBlob(value)) {
      throw new AxiosError("Blob is not supported. Use a Buffer instead.");
    }
    if (utils.isArrayBuffer(value) || utils.isTypedArray(value)) {
      return useBlob && typeof Blob === "function" ? new Blob([value]) : Buffer.from(value);
    }
    return value;
  }
  function defaultVisitor(value, key, path) {
    let arr = value;
    if (value && !path && typeof value === "object") {
      if (utils.endsWith(key, "{}")) {
        key = metaTokens ? key : key.slice(0, -2);
        value = JSON.stringify(value);
      } else if (utils.isArray(value) && isFlatArray(value) || (utils.isFileList(value) || utils.endsWith(key, "[]")) && (arr = utils.toArray(value))) {
        key = removeBrackets(key);
        arr.forEach(function each(el, index2) {
          !(utils.isUndefined(el) || el === null) && formData.append(
            indexes === true ? renderKey([key], index2, dots) : indexes === null ? key : key + "[]",
            convertValue(el)
          );
        });
        return false;
      }
    }
    if (isVisitable(value)) {
      return true;
    }
    formData.append(renderKey(path, key, dots), convertValue(value));
    return false;
  }
  const stack = [];
  const exposedHelpers = Object.assign(predicates, {
    defaultVisitor,
    convertValue,
    isVisitable
  });
  function build(value, path) {
    if (utils.isUndefined(value))
      return;
    if (stack.indexOf(value) !== -1) {
      throw Error("Circular reference detected in " + path.join("."));
    }
    stack.push(value);
    utils.forEach(value, function each(el, key) {
      const result = !(utils.isUndefined(el) || el === null) && visitor.call(
        formData,
        el,
        utils.isString(key) ? key.trim() : key,
        path,
        exposedHelpers
      );
      if (result === true) {
        build(el, path ? path.concat(key) : [key]);
      }
    });
    stack.pop();
  }
  if (!utils.isObject(obj)) {
    throw new TypeError("data must be an object");
  }
  build(obj);
  return formData;
}
function encode$1(str) {
  const charMap = {
    "!": "%21",
    "'": "%27",
    "(": "%28",
    ")": "%29",
    "~": "%7E",
    "%20": "+",
    "%00": "\0"
  };
  return encodeURIComponent(str).replace(/[!'()~]|%20|%00/g, function replacer(match) {
    return charMap[match];
  });
}
function AxiosURLSearchParams(params, options) {
  this._pairs = [];
  params && toFormData(params, this, options);
}
const prototype = AxiosURLSearchParams.prototype;
prototype.append = function append(name, value) {
  this._pairs.push([name, value]);
};
prototype.toString = function toString2(encoder) {
  const _encode = encoder ? function(value) {
    return encoder.call(this, value, encode$1);
  } : encode$1;
  return this._pairs.map(function each(pair) {
    return _encode(pair[0]) + "=" + _encode(pair[1]);
  }, "").join("&");
};
function encode(val) {
  return encodeURIComponent(val).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
}
function buildURL(url, params, options) {
  if (!params) {
    return url;
  }
  const _encode = options && options.encode || encode;
  const serializeFn = options && options.serialize;
  let serializedParams;
  if (serializeFn) {
    serializedParams = serializeFn(params, options);
  } else {
    serializedParams = utils.isURLSearchParams(params) ? params.toString() : new AxiosURLSearchParams(params, options).toString(_encode);
  }
  if (serializedParams) {
    const hashmarkIndex = url.indexOf("#");
    if (hashmarkIndex !== -1) {
      url = url.slice(0, hashmarkIndex);
    }
    url += (url.indexOf("?") === -1 ? "?" : "&") + serializedParams;
  }
  return url;
}
class InterceptorManager {
  constructor() {
    this.handlers = [];
  }
  use(fulfilled, rejected, options) {
    this.handlers.push({
      fulfilled,
      rejected,
      synchronous: options ? options.synchronous : false,
      runWhen: options ? options.runWhen : null
    });
    return this.handlers.length - 1;
  }
  eject(id) {
    if (this.handlers[id]) {
      this.handlers[id] = null;
    }
  }
  clear() {
    if (this.handlers) {
      this.handlers = [];
    }
  }
  forEach(fn) {
    utils.forEach(this.handlers, function forEachHandler(h2) {
      if (h2 !== null) {
        fn(h2);
      }
    });
  }
}
var InterceptorManager$1 = InterceptorManager;
var transitionalDefaults = {
  silentJSONParsing: true,
  forcedJSONParsing: true,
  clarifyTimeoutError: false
};
var URLSearchParams$1 = typeof URLSearchParams !== "undefined" ? URLSearchParams : AxiosURLSearchParams;
var FormData$1 = FormData;
const isStandardBrowserEnv = (() => {
  let product;
  if (typeof navigator !== "undefined" && ((product = navigator.product) === "ReactNative" || product === "NativeScript" || product === "NS")) {
    return false;
  }
  return typeof window !== "undefined" && typeof document !== "undefined";
})();
const isStandardBrowserWebWorkerEnv = (() => {
  return typeof WorkerGlobalScope !== "undefined" && self instanceof WorkerGlobalScope && typeof self.importScripts === "function";
})();
var platform = {
  isBrowser: true,
  classes: {
    URLSearchParams: URLSearchParams$1,
    FormData: FormData$1,
    Blob
  },
  isStandardBrowserEnv,
  isStandardBrowserWebWorkerEnv,
  protocols: ["http", "https", "file", "blob", "url", "data"]
};
function toURLEncodedForm(data, options) {
  return toFormData(data, new platform.classes.URLSearchParams(), Object.assign({
    visitor: function(value, key, path, helpers) {
      if (platform.isNode && utils.isBuffer(value)) {
        this.append(key, value.toString("base64"));
        return false;
      }
      return helpers.defaultVisitor.apply(this, arguments);
    }
  }, options));
}
function parsePropPath(name) {
  return utils.matchAll(/\w+|\[(\w*)]/g, name).map((match) => {
    return match[0] === "[]" ? "" : match[1] || match[0];
  });
}
function arrayToObject(arr) {
  const obj = {};
  const keys = Object.keys(arr);
  let i;
  const len = keys.length;
  let key;
  for (i = 0; i < len; i++) {
    key = keys[i];
    obj[key] = arr[key];
  }
  return obj;
}
function formDataToJSON(formData) {
  function buildPath(path, value, target, index2) {
    let name = path[index2++];
    const isNumericKey = Number.isFinite(+name);
    const isLast = index2 >= path.length;
    name = !name && utils.isArray(target) ? target.length : name;
    if (isLast) {
      if (utils.hasOwnProp(target, name)) {
        target[name] = [target[name], value];
      } else {
        target[name] = value;
      }
      return !isNumericKey;
    }
    if (!target[name] || !utils.isObject(target[name])) {
      target[name] = [];
    }
    const result = buildPath(path, value, target[name], index2);
    if (result && utils.isArray(target[name])) {
      target[name] = arrayToObject(target[name]);
    }
    return !isNumericKey;
  }
  if (utils.isFormData(formData) && utils.isFunction(formData.entries)) {
    const obj = {};
    utils.forEachEntry(formData, (name, value) => {
      buildPath(parsePropPath(name), value, obj, 0);
    });
    return obj;
  }
  return null;
}
const DEFAULT_CONTENT_TYPE = {
  "Content-Type": void 0
};
function stringifySafely(rawValue, parser, encoder) {
  if (utils.isString(rawValue)) {
    try {
      (parser || JSON.parse)(rawValue);
      return utils.trim(rawValue);
    } catch (e) {
      if (e.name !== "SyntaxError") {
        throw e;
      }
    }
  }
  return (encoder || JSON.stringify)(rawValue);
}
const defaults = {
  transitional: transitionalDefaults,
  adapter: ["xhr", "http"],
  transformRequest: [function transformRequest(data, headers) {
    const contentType = headers.getContentType() || "";
    const hasJSONContentType = contentType.indexOf("application/json") > -1;
    const isObjectPayload = utils.isObject(data);
    if (isObjectPayload && utils.isHTMLForm(data)) {
      data = new FormData(data);
    }
    const isFormData2 = utils.isFormData(data);
    if (isFormData2) {
      if (!hasJSONContentType) {
        return data;
      }
      return hasJSONContentType ? JSON.stringify(formDataToJSON(data)) : data;
    }
    if (utils.isArrayBuffer(data) || utils.isBuffer(data) || utils.isStream(data) || utils.isFile(data) || utils.isBlob(data)) {
      return data;
    }
    if (utils.isArrayBufferView(data)) {
      return data.buffer;
    }
    if (utils.isURLSearchParams(data)) {
      headers.setContentType("application/x-www-form-urlencoded;charset=utf-8", false);
      return data.toString();
    }
    let isFileList2;
    if (isObjectPayload) {
      if (contentType.indexOf("application/x-www-form-urlencoded") > -1) {
        return toURLEncodedForm(data, this.formSerializer).toString();
      }
      if ((isFileList2 = utils.isFileList(data)) || contentType.indexOf("multipart/form-data") > -1) {
        const _FormData = this.env && this.env.FormData;
        return toFormData(
          isFileList2 ? { "files[]": data } : data,
          _FormData && new _FormData(),
          this.formSerializer
        );
      }
    }
    if (isObjectPayload || hasJSONContentType) {
      headers.setContentType("application/json", false);
      return stringifySafely(data);
    }
    return data;
  }],
  transformResponse: [function transformResponse(data) {
    const transitional2 = this.transitional || defaults.transitional;
    const forcedJSONParsing = transitional2 && transitional2.forcedJSONParsing;
    const JSONRequested = this.responseType === "json";
    if (data && utils.isString(data) && (forcedJSONParsing && !this.responseType || JSONRequested)) {
      const silentJSONParsing = transitional2 && transitional2.silentJSONParsing;
      const strictJSONParsing = !silentJSONParsing && JSONRequested;
      try {
        return JSON.parse(data);
      } catch (e) {
        if (strictJSONParsing) {
          if (e.name === "SyntaxError") {
            throw AxiosError.from(e, AxiosError.ERR_BAD_RESPONSE, this, null, this.response);
          }
          throw e;
        }
      }
    }
    return data;
  }],
  timeout: 0,
  xsrfCookieName: "XSRF-TOKEN",
  xsrfHeaderName: "X-XSRF-TOKEN",
  maxContentLength: -1,
  maxBodyLength: -1,
  env: {
    FormData: platform.classes.FormData,
    Blob: platform.classes.Blob
  },
  validateStatus: function validateStatus(status) {
    return status >= 200 && status < 300;
  },
  headers: {
    common: {
      "Accept": "application/json, text/plain, */*"
    }
  }
};
utils.forEach(["delete", "get", "head"], function forEachMethodNoData(method) {
  defaults.headers[method] = {};
});
utils.forEach(["post", "put", "patch"], function forEachMethodWithData(method) {
  defaults.headers[method] = utils.merge(DEFAULT_CONTENT_TYPE);
});
var defaults$1 = defaults;
const ignoreDuplicateOf = utils.toObjectSet([
  "age",
  "authorization",
  "content-length",
  "content-type",
  "etag",
  "expires",
  "from",
  "host",
  "if-modified-since",
  "if-unmodified-since",
  "last-modified",
  "location",
  "max-forwards",
  "proxy-authorization",
  "referer",
  "retry-after",
  "user-agent"
]);
var parseHeaders = (rawHeaders) => {
  const parsed = {};
  let key;
  let val;
  let i;
  rawHeaders && rawHeaders.split("\n").forEach(function parser(line) {
    i = line.indexOf(":");
    key = line.substring(0, i).trim().toLowerCase();
    val = line.substring(i + 1).trim();
    if (!key || parsed[key] && ignoreDuplicateOf[key]) {
      return;
    }
    if (key === "set-cookie") {
      if (parsed[key]) {
        parsed[key].push(val);
      } else {
        parsed[key] = [val];
      }
    } else {
      parsed[key] = parsed[key] ? parsed[key] + ", " + val : val;
    }
  });
  return parsed;
};
const $internals = Symbol("internals");
function normalizeHeader(header) {
  return header && String(header).trim().toLowerCase();
}
function normalizeValue(value) {
  if (value === false || value == null) {
    return value;
  }
  return utils.isArray(value) ? value.map(normalizeValue) : String(value);
}
function parseTokens(str) {
  const tokens = /* @__PURE__ */ Object.create(null);
  const tokensRE = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
  let match;
  while (match = tokensRE.exec(str)) {
    tokens[match[1]] = match[2];
  }
  return tokens;
}
function isValidHeaderName(str) {
  return /^[-_a-zA-Z]+$/.test(str.trim());
}
function matchHeaderValue(context, value, header, filter2) {
  if (utils.isFunction(filter2)) {
    return filter2.call(this, value, header);
  }
  if (!utils.isString(value))
    return;
  if (utils.isString(filter2)) {
    return value.indexOf(filter2) !== -1;
  }
  if (utils.isRegExp(filter2)) {
    return filter2.test(value);
  }
}
function formatHeader(header) {
  return header.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (w, char, str) => {
    return char.toUpperCase() + str;
  });
}
function buildAccessors(obj, header) {
  const accessorName = utils.toCamelCase(" " + header);
  ["get", "set", "has"].forEach((methodName) => {
    Object.defineProperty(obj, methodName + accessorName, {
      value: function(arg1, arg2, arg3) {
        return this[methodName].call(this, header, arg1, arg2, arg3);
      },
      configurable: true
    });
  });
}
class AxiosHeaders {
  constructor(headers) {
    headers && this.set(headers);
  }
  set(header, valueOrRewrite, rewrite) {
    const self2 = this;
    function setHeader(_value, _header, _rewrite) {
      const lHeader = normalizeHeader(_header);
      if (!lHeader) {
        throw new Error("header name must be a non-empty string");
      }
      const key = utils.findKey(self2, lHeader);
      if (!key || self2[key] === void 0 || _rewrite === true || _rewrite === void 0 && self2[key] !== false) {
        self2[key || _header] = normalizeValue(_value);
      }
    }
    const setHeaders = (headers, _rewrite) => utils.forEach(headers, (_value, _header) => setHeader(_value, _header, _rewrite));
    if (utils.isPlainObject(header) || header instanceof this.constructor) {
      setHeaders(header, valueOrRewrite);
    } else if (utils.isString(header) && (header = header.trim()) && !isValidHeaderName(header)) {
      setHeaders(parseHeaders(header), valueOrRewrite);
    } else {
      header != null && setHeader(valueOrRewrite, header, rewrite);
    }
    return this;
  }
  get(header, parser) {
    header = normalizeHeader(header);
    if (header) {
      const key = utils.findKey(this, header);
      if (key) {
        const value = this[key];
        if (!parser) {
          return value;
        }
        if (parser === true) {
          return parseTokens(value);
        }
        if (utils.isFunction(parser)) {
          return parser.call(this, value, key);
        }
        if (utils.isRegExp(parser)) {
          return parser.exec(value);
        }
        throw new TypeError("parser must be boolean|regexp|function");
      }
    }
  }
  has(header, matcher) {
    header = normalizeHeader(header);
    if (header) {
      const key = utils.findKey(this, header);
      return !!(key && this[key] !== void 0 && (!matcher || matchHeaderValue(this, this[key], key, matcher)));
    }
    return false;
  }
  delete(header, matcher) {
    const self2 = this;
    let deleted = false;
    function deleteHeader(_header) {
      _header = normalizeHeader(_header);
      if (_header) {
        const key = utils.findKey(self2, _header);
        if (key && (!matcher || matchHeaderValue(self2, self2[key], key, matcher))) {
          delete self2[key];
          deleted = true;
        }
      }
    }
    if (utils.isArray(header)) {
      header.forEach(deleteHeader);
    } else {
      deleteHeader(header);
    }
    return deleted;
  }
  clear(matcher) {
    const keys = Object.keys(this);
    let i = keys.length;
    let deleted = false;
    while (i--) {
      const key = keys[i];
      if (!matcher || matchHeaderValue(this, this[key], key, matcher)) {
        delete this[key];
        deleted = true;
      }
    }
    return deleted;
  }
  normalize(format) {
    const self2 = this;
    const headers = {};
    utils.forEach(this, (value, header) => {
      const key = utils.findKey(headers, header);
      if (key) {
        self2[key] = normalizeValue(value);
        delete self2[header];
        return;
      }
      const normalized = format ? formatHeader(header) : String(header).trim();
      if (normalized !== header) {
        delete self2[header];
      }
      self2[normalized] = normalizeValue(value);
      headers[normalized] = true;
    });
    return this;
  }
  concat(...targets) {
    return this.constructor.concat(this, ...targets);
  }
  toJSON(asStrings) {
    const obj = /* @__PURE__ */ Object.create(null);
    utils.forEach(this, (value, header) => {
      value != null && value !== false && (obj[header] = asStrings && utils.isArray(value) ? value.join(", ") : value);
    });
    return obj;
  }
  [Symbol.iterator]() {
    return Object.entries(this.toJSON())[Symbol.iterator]();
  }
  toString() {
    return Object.entries(this.toJSON()).map(([header, value]) => header + ": " + value).join("\n");
  }
  get [Symbol.toStringTag]() {
    return "AxiosHeaders";
  }
  static from(thing) {
    return thing instanceof this ? thing : new this(thing);
  }
  static concat(first, ...targets) {
    const computed = new this(first);
    targets.forEach((target) => computed.set(target));
    return computed;
  }
  static accessor(header) {
    const internals = this[$internals] = this[$internals] = {
      accessors: {}
    };
    const accessors = internals.accessors;
    const prototype2 = this.prototype;
    function defineAccessor(_header) {
      const lHeader = normalizeHeader(_header);
      if (!accessors[lHeader]) {
        buildAccessors(prototype2, _header);
        accessors[lHeader] = true;
      }
    }
    utils.isArray(header) ? header.forEach(defineAccessor) : defineAccessor(header);
    return this;
  }
}
AxiosHeaders.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
utils.freezeMethods(AxiosHeaders.prototype);
utils.freezeMethods(AxiosHeaders);
var AxiosHeaders$1 = AxiosHeaders;
function transformData(fns, response) {
  const config2 = this || defaults$1;
  const context = response || config2;
  const headers = AxiosHeaders$1.from(context.headers);
  let data = context.data;
  utils.forEach(fns, function transform(fn) {
    data = fn.call(config2, data, headers.normalize(), response ? response.status : void 0);
  });
  headers.normalize();
  return data;
}
function isCancel(value) {
  return !!(value && value.__CANCEL__);
}
function CanceledError(message2, config2, request2) {
  AxiosError.call(this, message2 == null ? "canceled" : message2, AxiosError.ERR_CANCELED, config2, request2);
  this.name = "CanceledError";
}
utils.inherits(CanceledError, AxiosError, {
  __CANCEL__: true
});
function settle(resolve, reject, response) {
  const validateStatus2 = response.config.validateStatus;
  if (!response.status || !validateStatus2 || validateStatus2(response.status)) {
    resolve(response);
  } else {
    reject(new AxiosError(
      "Request failed with status code " + response.status,
      [AxiosError.ERR_BAD_REQUEST, AxiosError.ERR_BAD_RESPONSE][Math.floor(response.status / 100) - 4],
      response.config,
      response.request,
      response
    ));
  }
}
var cookies = platform.isStandardBrowserEnv ? function standardBrowserEnv() {
  return {
    write: function write(name, value, expires, path, domain, secure) {
      const cookie = [];
      cookie.push(name + "=" + encodeURIComponent(value));
      if (utils.isNumber(expires)) {
        cookie.push("expires=" + new Date(expires).toGMTString());
      }
      if (utils.isString(path)) {
        cookie.push("path=" + path);
      }
      if (utils.isString(domain)) {
        cookie.push("domain=" + domain);
      }
      if (secure === true) {
        cookie.push("secure");
      }
      document.cookie = cookie.join("; ");
    },
    read: function read(name) {
      const match = document.cookie.match(new RegExp("(^|;\\s*)(" + name + ")=([^;]*)"));
      return match ? decodeURIComponent(match[3]) : null;
    },
    remove: function remove(name) {
      this.write(name, "", Date.now() - 864e5);
    }
  };
}() : function nonStandardBrowserEnv() {
  return {
    write: function write() {
    },
    read: function read() {
      return null;
    },
    remove: function remove() {
    }
  };
}();
function isAbsoluteURL(url) {
  return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(url);
}
function combineURLs(baseURL, relativeURL) {
  return relativeURL ? baseURL.replace(/\/+$/, "") + "/" + relativeURL.replace(/^\/+/, "") : baseURL;
}
function buildFullPath(baseURL, requestedURL) {
  if (baseURL && !isAbsoluteURL(requestedURL)) {
    return combineURLs(baseURL, requestedURL);
  }
  return requestedURL;
}
var isURLSameOrigin = platform.isStandardBrowserEnv ? function standardBrowserEnv2() {
  const msie = /(msie|trident)/i.test(navigator.userAgent);
  const urlParsingNode = document.createElement("a");
  let originURL;
  function resolveURL(url) {
    let href = url;
    if (msie) {
      urlParsingNode.setAttribute("href", href);
      href = urlParsingNode.href;
    }
    urlParsingNode.setAttribute("href", href);
    return {
      href: urlParsingNode.href,
      protocol: urlParsingNode.protocol ? urlParsingNode.protocol.replace(/:$/, "") : "",
      host: urlParsingNode.host,
      search: urlParsingNode.search ? urlParsingNode.search.replace(/^\?/, "") : "",
      hash: urlParsingNode.hash ? urlParsingNode.hash.replace(/^#/, "") : "",
      hostname: urlParsingNode.hostname,
      port: urlParsingNode.port,
      pathname: urlParsingNode.pathname.charAt(0) === "/" ? urlParsingNode.pathname : "/" + urlParsingNode.pathname
    };
  }
  originURL = resolveURL(window.location.href);
  return function isURLSameOrigin2(requestURL) {
    const parsed = utils.isString(requestURL) ? resolveURL(requestURL) : requestURL;
    return parsed.protocol === originURL.protocol && parsed.host === originURL.host;
  };
}() : function nonStandardBrowserEnv2() {
  return function isURLSameOrigin2() {
    return true;
  };
}();
function parseProtocol(url) {
  const match = /^([-+\w]{1,25})(:?\/\/|:)/.exec(url);
  return match && match[1] || "";
}
function speedometer(samplesCount, min) {
  samplesCount = samplesCount || 10;
  const bytes = new Array(samplesCount);
  const timestamps = new Array(samplesCount);
  let head = 0;
  let tail = 0;
  let firstSampleTS;
  min = min !== void 0 ? min : 1e3;
  return function push(chunkLength) {
    const now = Date.now();
    const startedAt = timestamps[tail];
    if (!firstSampleTS) {
      firstSampleTS = now;
    }
    bytes[head] = chunkLength;
    timestamps[head] = now;
    let i = tail;
    let bytesCount = 0;
    while (i !== head) {
      bytesCount += bytes[i++];
      i = i % samplesCount;
    }
    head = (head + 1) % samplesCount;
    if (head === tail) {
      tail = (tail + 1) % samplesCount;
    }
    if (now - firstSampleTS < min) {
      return;
    }
    const passed = startedAt && now - startedAt;
    return passed ? Math.round(bytesCount * 1e3 / passed) : void 0;
  };
}
function progressEventReducer(listener, isDownloadStream) {
  let bytesNotified = 0;
  const _speedometer = speedometer(50, 250);
  return (e) => {
    const loaded = e.loaded;
    const total = e.lengthComputable ? e.total : void 0;
    const progressBytes = loaded - bytesNotified;
    const rate = _speedometer(progressBytes);
    const inRange = loaded <= total;
    bytesNotified = loaded;
    const data = {
      loaded,
      total,
      progress: total ? loaded / total : void 0,
      bytes: progressBytes,
      rate: rate ? rate : void 0,
      estimated: rate && total && inRange ? (total - loaded) / rate : void 0,
      event: e
    };
    data[isDownloadStream ? "download" : "upload"] = true;
    listener(data);
  };
}
const isXHRAdapterSupported = typeof XMLHttpRequest !== "undefined";
var xhrAdapter = isXHRAdapterSupported && function(config2) {
  return new Promise(function dispatchXhrRequest(resolve, reject) {
    let requestData = config2.data;
    const requestHeaders = AxiosHeaders$1.from(config2.headers).normalize();
    const responseType = config2.responseType;
    let onCanceled;
    function done() {
      if (config2.cancelToken) {
        config2.cancelToken.unsubscribe(onCanceled);
      }
      if (config2.signal) {
        config2.signal.removeEventListener("abort", onCanceled);
      }
    }
    if (utils.isFormData(requestData) && (platform.isStandardBrowserEnv || platform.isStandardBrowserWebWorkerEnv)) {
      requestHeaders.setContentType(false);
    }
    let request2 = new XMLHttpRequest();
    if (config2.auth) {
      const username = config2.auth.username || "";
      const password = config2.auth.password ? unescape(encodeURIComponent(config2.auth.password)) : "";
      requestHeaders.set("Authorization", "Basic " + btoa(username + ":" + password));
    }
    const fullPath = buildFullPath(config2.baseURL, config2.url);
    request2.open(config2.method.toUpperCase(), buildURL(fullPath, config2.params, config2.paramsSerializer), true);
    request2.timeout = config2.timeout;
    function onloadend() {
      if (!request2) {
        return;
      }
      const responseHeaders = AxiosHeaders$1.from(
        "getAllResponseHeaders" in request2 && request2.getAllResponseHeaders()
      );
      const responseData = !responseType || responseType === "text" || responseType === "json" ? request2.responseText : request2.response;
      const response = {
        data: responseData,
        status: request2.status,
        statusText: request2.statusText,
        headers: responseHeaders,
        config: config2,
        request: request2
      };
      settle(function _resolve(value) {
        resolve(value);
        done();
      }, function _reject(err) {
        reject(err);
        done();
      }, response);
      request2 = null;
    }
    if ("onloadend" in request2) {
      request2.onloadend = onloadend;
    } else {
      request2.onreadystatechange = function handleLoad() {
        if (!request2 || request2.readyState !== 4) {
          return;
        }
        if (request2.status === 0 && !(request2.responseURL && request2.responseURL.indexOf("file:") === 0)) {
          return;
        }
        setTimeout(onloadend);
      };
    }
    request2.onabort = function handleAbort() {
      if (!request2) {
        return;
      }
      reject(new AxiosError("Request aborted", AxiosError.ECONNABORTED, config2, request2));
      request2 = null;
    };
    request2.onerror = function handleError() {
      reject(new AxiosError("Network Error", AxiosError.ERR_NETWORK, config2, request2));
      request2 = null;
    };
    request2.ontimeout = function handleTimeout() {
      let timeoutErrorMessage = config2.timeout ? "timeout of " + config2.timeout + "ms exceeded" : "timeout exceeded";
      const transitional2 = config2.transitional || transitionalDefaults;
      if (config2.timeoutErrorMessage) {
        timeoutErrorMessage = config2.timeoutErrorMessage;
      }
      reject(new AxiosError(
        timeoutErrorMessage,
        transitional2.clarifyTimeoutError ? AxiosError.ETIMEDOUT : AxiosError.ECONNABORTED,
        config2,
        request2
      ));
      request2 = null;
    };
    if (platform.isStandardBrowserEnv) {
      const xsrfValue = (config2.withCredentials || isURLSameOrigin(fullPath)) && config2.xsrfCookieName && cookies.read(config2.xsrfCookieName);
      if (xsrfValue) {
        requestHeaders.set(config2.xsrfHeaderName, xsrfValue);
      }
    }
    requestData === void 0 && requestHeaders.setContentType(null);
    if ("setRequestHeader" in request2) {
      utils.forEach(requestHeaders.toJSON(), function setRequestHeader(val, key) {
        request2.setRequestHeader(key, val);
      });
    }
    if (!utils.isUndefined(config2.withCredentials)) {
      request2.withCredentials = !!config2.withCredentials;
    }
    if (responseType && responseType !== "json") {
      request2.responseType = config2.responseType;
    }
    if (typeof config2.onDownloadProgress === "function") {
      request2.addEventListener("progress", progressEventReducer(config2.onDownloadProgress, true));
    }
    if (typeof config2.onUploadProgress === "function" && request2.upload) {
      request2.upload.addEventListener("progress", progressEventReducer(config2.onUploadProgress));
    }
    if (config2.cancelToken || config2.signal) {
      onCanceled = (cancel) => {
        if (!request2) {
          return;
        }
        reject(!cancel || cancel.type ? new CanceledError(null, config2, request2) : cancel);
        request2.abort();
        request2 = null;
      };
      config2.cancelToken && config2.cancelToken.subscribe(onCanceled);
      if (config2.signal) {
        config2.signal.aborted ? onCanceled() : config2.signal.addEventListener("abort", onCanceled);
      }
    }
    const protocol = parseProtocol(fullPath);
    if (protocol && platform.protocols.indexOf(protocol) === -1) {
      reject(new AxiosError("Unsupported protocol " + protocol + ":", AxiosError.ERR_BAD_REQUEST, config2));
      return;
    }
    request2.send(requestData || null);
  });
};
const knownAdapters = {
  http: httpAdapter,
  xhr: xhrAdapter
};
utils.forEach(knownAdapters, (fn, value) => {
  if (fn) {
    try {
      Object.defineProperty(fn, "name", { value });
    } catch (e) {
    }
    Object.defineProperty(fn, "adapterName", { value });
  }
});
var adapters = {
  getAdapter: (adapters2) => {
    adapters2 = utils.isArray(adapters2) ? adapters2 : [adapters2];
    const { length } = adapters2;
    let nameOrAdapter;
    let adapter;
    for (let i = 0; i < length; i++) {
      nameOrAdapter = adapters2[i];
      if (adapter = utils.isString(nameOrAdapter) ? knownAdapters[nameOrAdapter.toLowerCase()] : nameOrAdapter) {
        break;
      }
    }
    if (!adapter) {
      if (adapter === false) {
        throw new AxiosError(
          `Adapter ${nameOrAdapter} is not supported by the environment`,
          "ERR_NOT_SUPPORT"
        );
      }
      throw new Error(
        utils.hasOwnProp(knownAdapters, nameOrAdapter) ? `Adapter '${nameOrAdapter}' is not available in the build` : `Unknown adapter '${nameOrAdapter}'`
      );
    }
    if (!utils.isFunction(adapter)) {
      throw new TypeError("adapter is not a function");
    }
    return adapter;
  },
  adapters: knownAdapters
};
function throwIfCancellationRequested(config2) {
  if (config2.cancelToken) {
    config2.cancelToken.throwIfRequested();
  }
  if (config2.signal && config2.signal.aborted) {
    throw new CanceledError(null, config2);
  }
}
function dispatchRequest(config2) {
  throwIfCancellationRequested(config2);
  config2.headers = AxiosHeaders$1.from(config2.headers);
  config2.data = transformData.call(
    config2,
    config2.transformRequest
  );
  if (["post", "put", "patch"].indexOf(config2.method) !== -1) {
    config2.headers.setContentType("application/x-www-form-urlencoded", false);
  }
  const adapter = adapters.getAdapter(config2.adapter || defaults$1.adapter);
  return adapter(config2).then(function onAdapterResolution(response) {
    throwIfCancellationRequested(config2);
    response.data = transformData.call(
      config2,
      config2.transformResponse,
      response
    );
    response.headers = AxiosHeaders$1.from(response.headers);
    return response;
  }, function onAdapterRejection(reason) {
    if (!isCancel(reason)) {
      throwIfCancellationRequested(config2);
      if (reason && reason.response) {
        reason.response.data = transformData.call(
          config2,
          config2.transformResponse,
          reason.response
        );
        reason.response.headers = AxiosHeaders$1.from(reason.response.headers);
      }
    }
    return Promise.reject(reason);
  });
}
const headersToObject = (thing) => thing instanceof AxiosHeaders$1 ? thing.toJSON() : thing;
function mergeConfig(config1, config2) {
  config2 = config2 || {};
  const config3 = {};
  function getMergedValue(target, source2, caseless) {
    if (utils.isPlainObject(target) && utils.isPlainObject(source2)) {
      return utils.merge.call({ caseless }, target, source2);
    } else if (utils.isPlainObject(source2)) {
      return utils.merge({}, source2);
    } else if (utils.isArray(source2)) {
      return source2.slice();
    }
    return source2;
  }
  function mergeDeepProperties(a, b, caseless) {
    if (!utils.isUndefined(b)) {
      return getMergedValue(a, b, caseless);
    } else if (!utils.isUndefined(a)) {
      return getMergedValue(void 0, a, caseless);
    }
  }
  function valueFromConfig2(a, b) {
    if (!utils.isUndefined(b)) {
      return getMergedValue(void 0, b);
    }
  }
  function defaultToConfig2(a, b) {
    if (!utils.isUndefined(b)) {
      return getMergedValue(void 0, b);
    } else if (!utils.isUndefined(a)) {
      return getMergedValue(void 0, a);
    }
  }
  function mergeDirectKeys(a, b, prop) {
    if (prop in config2) {
      return getMergedValue(a, b);
    } else if (prop in config1) {
      return getMergedValue(void 0, a);
    }
  }
  const mergeMap = {
    url: valueFromConfig2,
    method: valueFromConfig2,
    data: valueFromConfig2,
    baseURL: defaultToConfig2,
    transformRequest: defaultToConfig2,
    transformResponse: defaultToConfig2,
    paramsSerializer: defaultToConfig2,
    timeout: defaultToConfig2,
    timeoutMessage: defaultToConfig2,
    withCredentials: defaultToConfig2,
    adapter: defaultToConfig2,
    responseType: defaultToConfig2,
    xsrfCookieName: defaultToConfig2,
    xsrfHeaderName: defaultToConfig2,
    onUploadProgress: defaultToConfig2,
    onDownloadProgress: defaultToConfig2,
    decompress: defaultToConfig2,
    maxContentLength: defaultToConfig2,
    maxBodyLength: defaultToConfig2,
    beforeRedirect: defaultToConfig2,
    transport: defaultToConfig2,
    httpAgent: defaultToConfig2,
    httpsAgent: defaultToConfig2,
    cancelToken: defaultToConfig2,
    socketPath: defaultToConfig2,
    responseEncoding: defaultToConfig2,
    validateStatus: mergeDirectKeys,
    headers: (a, b) => mergeDeepProperties(headersToObject(a), headersToObject(b), true)
  };
  utils.forEach(Object.keys(config1).concat(Object.keys(config2)), function computeConfigValue(prop) {
    const merge2 = mergeMap[prop] || mergeDeepProperties;
    const configValue = merge2(config1[prop], config2[prop], prop);
    utils.isUndefined(configValue) && merge2 !== mergeDirectKeys || (config3[prop] = configValue);
  });
  return config3;
}
const VERSION = "1.3.2";
const validators$1 = {};
["object", "boolean", "number", "function", "string", "symbol"].forEach((type, i) => {
  validators$1[type] = function validator2(thing) {
    return typeof thing === type || "a" + (i < 1 ? "n " : " ") + type;
  };
});
const deprecatedWarnings = {};
validators$1.transitional = function transitional(validator2, version, message2) {
  function formatMessage(opt, desc) {
    return "[Axios v" + VERSION + "] Transitional option '" + opt + "'" + desc + (message2 ? ". " + message2 : "");
  }
  return (value, opt, opts) => {
    if (validator2 === false) {
      throw new AxiosError(
        formatMessage(opt, " has been removed" + (version ? " in " + version : "")),
        AxiosError.ERR_DEPRECATED
      );
    }
    if (version && !deprecatedWarnings[opt]) {
      deprecatedWarnings[opt] = true;
      console.warn(
        formatMessage(
          opt,
          " has been deprecated since v" + version + " and will be removed in the near future"
        )
      );
    }
    return validator2 ? validator2(value, opt, opts) : true;
  };
};
function assertOptions(options, schema, allowUnknown) {
  if (typeof options !== "object") {
    throw new AxiosError("options must be an object", AxiosError.ERR_BAD_OPTION_VALUE);
  }
  const keys = Object.keys(options);
  let i = keys.length;
  while (i-- > 0) {
    const opt = keys[i];
    const validator2 = schema[opt];
    if (validator2) {
      const value = options[opt];
      const result = value === void 0 || validator2(value, opt, options);
      if (result !== true) {
        throw new AxiosError("option " + opt + " must be " + result, AxiosError.ERR_BAD_OPTION_VALUE);
      }
      continue;
    }
    if (allowUnknown !== true) {
      throw new AxiosError("Unknown option " + opt, AxiosError.ERR_BAD_OPTION);
    }
  }
}
var validator = {
  assertOptions,
  validators: validators$1
};
const validators = validator.validators;
class Axios {
  constructor(instanceConfig) {
    this.defaults = instanceConfig;
    this.interceptors = {
      request: new InterceptorManager$1(),
      response: new InterceptorManager$1()
    };
  }
  request(configOrUrl, config2) {
    if (typeof configOrUrl === "string") {
      config2 = config2 || {};
      config2.url = configOrUrl;
    } else {
      config2 = configOrUrl || {};
    }
    config2 = mergeConfig(this.defaults, config2);
    const { transitional: transitional2, paramsSerializer, headers } = config2;
    if (transitional2 !== void 0) {
      validator.assertOptions(transitional2, {
        silentJSONParsing: validators.transitional(validators.boolean),
        forcedJSONParsing: validators.transitional(validators.boolean),
        clarifyTimeoutError: validators.transitional(validators.boolean)
      }, false);
    }
    if (paramsSerializer !== void 0) {
      validator.assertOptions(paramsSerializer, {
        encode: validators.function,
        serialize: validators.function
      }, true);
    }
    config2.method = (config2.method || this.defaults.method || "get").toLowerCase();
    let contextHeaders;
    contextHeaders = headers && utils.merge(
      headers.common,
      headers[config2.method]
    );
    contextHeaders && utils.forEach(
      ["delete", "get", "head", "post", "put", "patch", "common"],
      (method) => {
        delete headers[method];
      }
    );
    config2.headers = AxiosHeaders$1.concat(contextHeaders, headers);
    const requestInterceptorChain = [];
    let synchronousRequestInterceptors = true;
    this.interceptors.request.forEach(function unshiftRequestInterceptors(interceptor) {
      if (typeof interceptor.runWhen === "function" && interceptor.runWhen(config2) === false) {
        return;
      }
      synchronousRequestInterceptors = synchronousRequestInterceptors && interceptor.synchronous;
      requestInterceptorChain.unshift(interceptor.fulfilled, interceptor.rejected);
    });
    const responseInterceptorChain = [];
    this.interceptors.response.forEach(function pushResponseInterceptors(interceptor) {
      responseInterceptorChain.push(interceptor.fulfilled, interceptor.rejected);
    });
    let promise;
    let i = 0;
    let len;
    if (!synchronousRequestInterceptors) {
      const chain = [dispatchRequest.bind(this), void 0];
      chain.unshift.apply(chain, requestInterceptorChain);
      chain.push.apply(chain, responseInterceptorChain);
      len = chain.length;
      promise = Promise.resolve(config2);
      while (i < len) {
        promise = promise.then(chain[i++], chain[i++]);
      }
      return promise;
    }
    len = requestInterceptorChain.length;
    let newConfig = config2;
    i = 0;
    while (i < len) {
      const onFulfilled = requestInterceptorChain[i++];
      const onRejected = requestInterceptorChain[i++];
      try {
        newConfig = onFulfilled(newConfig);
      } catch (error) {
        onRejected.call(this, error);
        break;
      }
    }
    try {
      promise = dispatchRequest.call(this, newConfig);
    } catch (error) {
      return Promise.reject(error);
    }
    i = 0;
    len = responseInterceptorChain.length;
    while (i < len) {
      promise = promise.then(responseInterceptorChain[i++], responseInterceptorChain[i++]);
    }
    return promise;
  }
  getUri(config2) {
    config2 = mergeConfig(this.defaults, config2);
    const fullPath = buildFullPath(config2.baseURL, config2.url);
    return buildURL(fullPath, config2.params, config2.paramsSerializer);
  }
}
utils.forEach(["delete", "get", "head", "options"], function forEachMethodNoData2(method) {
  Axios.prototype[method] = function(url, config2) {
    return this.request(mergeConfig(config2 || {}, {
      method,
      url,
      data: (config2 || {}).data
    }));
  };
});
utils.forEach(["post", "put", "patch"], function forEachMethodWithData2(method) {
  function generateHTTPMethod(isForm) {
    return function httpMethod(url, data, config2) {
      return this.request(mergeConfig(config2 || {}, {
        method,
        headers: isForm ? {
          "Content-Type": "multipart/form-data"
        } : {},
        url,
        data
      }));
    };
  }
  Axios.prototype[method] = generateHTTPMethod();
  Axios.prototype[method + "Form"] = generateHTTPMethod(true);
});
var Axios$1 = Axios;
class CancelToken {
  constructor(executor) {
    if (typeof executor !== "function") {
      throw new TypeError("executor must be a function.");
    }
    let resolvePromise;
    this.promise = new Promise(function promiseExecutor(resolve) {
      resolvePromise = resolve;
    });
    const token = this;
    this.promise.then((cancel) => {
      if (!token._listeners)
        return;
      let i = token._listeners.length;
      while (i-- > 0) {
        token._listeners[i](cancel);
      }
      token._listeners = null;
    });
    this.promise.then = (onfulfilled) => {
      let _resolve;
      const promise = new Promise((resolve) => {
        token.subscribe(resolve);
        _resolve = resolve;
      }).then(onfulfilled);
      promise.cancel = function reject() {
        token.unsubscribe(_resolve);
      };
      return promise;
    };
    executor(function cancel(message2, config2, request2) {
      if (token.reason) {
        return;
      }
      token.reason = new CanceledError(message2, config2, request2);
      resolvePromise(token.reason);
    });
  }
  throwIfRequested() {
    if (this.reason) {
      throw this.reason;
    }
  }
  subscribe(listener) {
    if (this.reason) {
      listener(this.reason);
      return;
    }
    if (this._listeners) {
      this._listeners.push(listener);
    } else {
      this._listeners = [listener];
    }
  }
  unsubscribe(listener) {
    if (!this._listeners) {
      return;
    }
    const index2 = this._listeners.indexOf(listener);
    if (index2 !== -1) {
      this._listeners.splice(index2, 1);
    }
  }
  static source() {
    let cancel;
    const token = new CancelToken(function executor(c) {
      cancel = c;
    });
    return {
      token,
      cancel
    };
  }
}
var CancelToken$1 = CancelToken;
function spread(callback) {
  return function wrap(arr) {
    return callback.apply(null, arr);
  };
}
function isAxiosError(payload) {
  return utils.isObject(payload) && payload.isAxiosError === true;
}
const HttpStatusCode = {
  Continue: 100,
  SwitchingProtocols: 101,
  Processing: 102,
  EarlyHints: 103,
  Ok: 200,
  Created: 201,
  Accepted: 202,
  NonAuthoritativeInformation: 203,
  NoContent: 204,
  ResetContent: 205,
  PartialContent: 206,
  MultiStatus: 207,
  AlreadyReported: 208,
  ImUsed: 226,
  MultipleChoices: 300,
  MovedPermanently: 301,
  Found: 302,
  SeeOther: 303,
  NotModified: 304,
  UseProxy: 305,
  Unused: 306,
  TemporaryRedirect: 307,
  PermanentRedirect: 308,
  BadRequest: 400,
  Unauthorized: 401,
  PaymentRequired: 402,
  Forbidden: 403,
  NotFound: 404,
  MethodNotAllowed: 405,
  NotAcceptable: 406,
  ProxyAuthenticationRequired: 407,
  RequestTimeout: 408,
  Conflict: 409,
  Gone: 410,
  LengthRequired: 411,
  PreconditionFailed: 412,
  PayloadTooLarge: 413,
  UriTooLong: 414,
  UnsupportedMediaType: 415,
  RangeNotSatisfiable: 416,
  ExpectationFailed: 417,
  ImATeapot: 418,
  MisdirectedRequest: 421,
  UnprocessableEntity: 422,
  Locked: 423,
  FailedDependency: 424,
  TooEarly: 425,
  UpgradeRequired: 426,
  PreconditionRequired: 428,
  TooManyRequests: 429,
  RequestHeaderFieldsTooLarge: 431,
  UnavailableForLegalReasons: 451,
  InternalServerError: 500,
  NotImplemented: 501,
  BadGateway: 502,
  ServiceUnavailable: 503,
  GatewayTimeout: 504,
  HttpVersionNotSupported: 505,
  VariantAlsoNegotiates: 506,
  InsufficientStorage: 507,
  LoopDetected: 508,
  NotExtended: 510,
  NetworkAuthenticationRequired: 511
};
Object.entries(HttpStatusCode).forEach(([key, value]) => {
  HttpStatusCode[value] = key;
});
var HttpStatusCode$1 = HttpStatusCode;
function createInstance(defaultConfig) {
  const context = new Axios$1(defaultConfig);
  const instance2 = bind(Axios$1.prototype.request, context);
  utils.extend(instance2, Axios$1.prototype, context, { allOwnKeys: true });
  utils.extend(instance2, context, null, { allOwnKeys: true });
  instance2.create = function create(instanceConfig) {
    return createInstance(mergeConfig(defaultConfig, instanceConfig));
  };
  return instance2;
}
const axios = createInstance(defaults$1);
axios.Axios = Axios$1;
axios.CanceledError = CanceledError;
axios.CancelToken = CancelToken$1;
axios.isCancel = isCancel;
axios.VERSION = VERSION;
axios.toFormData = toFormData;
axios.AxiosError = AxiosError;
axios.Cancel = axios.CanceledError;
axios.all = function all(promises) {
  return Promise.all(promises);
};
axios.spread = spread;
axios.isAxiosError = isAxiosError;
axios.mergeConfig = mergeConfig;
axios.AxiosHeaders = AxiosHeaders$1;
axios.formToJSON = (thing) => formDataToJSON(utils.isHTMLForm(thing) ? new FormData(thing) : thing);
axios.HttpStatusCode = HttpStatusCode$1;
axios.default = axios;
var axios$1 = axios;
var responseCodeEnum = /* @__PURE__ */ ((responseCodeEnum2) => {
  responseCodeEnum2[responseCodeEnum2["SUCCESS"] = 8200] = "SUCCESS";
  responseCodeEnum2[responseCodeEnum2["decorationSUCCESS"] = 200] = "decorationSUCCESS";
  responseCodeEnum2[responseCodeEnum2["UNAUTHENTICATED"] = 8302] = "UNAUTHENTICATED";
  return responseCodeEnum2;
})(responseCodeEnum || {});
const configSensitive = function() {
  const config2 = reactive({
    token: "",
    proxyUrl: ""
  });
  const setConfig = function(token, proxyUrl) {
    config2.token = token;
    config2.proxyUrl = proxyUrl;
    sessionStorage.setItem("sensitiveToken", token);
    sessionStorage.setItem("sensitiveProxyUrl", proxyUrl);
  };
  const getConfig = function() {
    config2.token = sessionStorage.getItem("sensitiveToken");
    config2.proxyUrl = sessionStorage.getItem("sensitiveProxyUrl");
    return config2;
  };
  const clearConfig = function() {
    sessionStorage.removeItem("sensitiveToken");
    sessionStorage.removeItem("sensitiveProxyUrl");
  };
  return {
    setConfig,
    getConfig,
    clearConfig
  };
};
const source = {};
let requestList = [];
setCookie("token", configSensitive().getConfig().token);
function setCookie(name, value, hours = 24) {
  let str = name + "=" + value;
  const time = new Date(
    new Date().getTime() + hours * 3600 * 1e3
  ).toGMTString();
  str += "; expires=" + time;
  const cookieArr = document.cookie.split(";");
  const ishave = cookieArr.some((cookie) => {
    return cookie.indexOf("token") > -1;
  });
  if (ishave) {
    cookieArr.forEach((cookie) => {
      if (cookie.indexOf("token") > -1) {
        cookie = str;
      }
    });
    document.cookie = str;
  } else {
    document.cookie = str;
  }
}
function object2FormData(obj) {
  const formData = new FormData();
  for (const k in obj) {
    formData.append(k, obj[k]);
  }
  return formData;
}
const instance = axios$1.create({
  baseURL: configSensitive().getConfig().proxyUrl || "",
  timeout: 1e3 * 50
});
instance.interceptors.request.use((config2) => {
  if (configSensitive().getConfig().token) {
    config2.headers["Source"] = "manager";
  }
  return config2;
});
instance.interceptors.response.use(
  (response) => {
    const path = JSON.stringify(response.config.url);
    if (response.config.responseType === "blob") {
      return Promise.resolve(response);
    }
    requestList = requestList.filter((item) => !path.includes(item));
    const statusCode = parseInt(response.data.code);
    if (statusCode === responseCodeEnum.SUCCESS || statusCode === responseCodeEnum.decorationSUCCESS) {
      return Promise.resolve(response);
    } else if (statusCode === responseCodeEnum.UNAUTHENTICATED) {
      return Promise.reject(response);
    } else {
      message.error(response.data.message || response.data.msg);
      return Promise.reject(response);
    }
  },
  (error) => {
    message.error(error.response.data.message || error.response.data.msg);
    return Promise.reject(error);
  }
);
async function request(options) {
  requestList.push(options.url);
  if (!options.method) {
    options.method = "GET";
  }
  let formatData = {};
  if (["GET", "PUT", "DELETE"].includes(options.method.toUpperCase())) {
    if (options.params) {
      formatData = { ...options.params };
    }
    if (options.isFormData) {
      formatData = object2FormData(formatData);
    }
    const { data } = await instance.request({
      url: options.url,
      method: options.method,
      params: formatData,
      cancelToken: new axios$1.CancelToken((c) => {
        source[options.url] = c;
      })
    });
    return data;
  } else {
    if (options.data) {
      formatData = { ...options.data };
    }
    if (options.isFormData) {
      formatData = object2FormData(formatData);
    }
    const { data } = await instance.request({
      url: options.url,
      method: options.method,
      data: formatData,
      responseType: options.responseType || "json",
      headers: options.headers,
      cancelToken: new axios$1.CancelToken((c) => {
        source[options.url] = c;
      })
    });
    return data;
  }
}
request.get = function(options) {
  options.method = "GET";
  return request(options);
};
request.post = function(options) {
  options.method = "POST";
  return request(options);
};
request.put = function(options) {
  options.method = "PUT";
  return request(options);
};
request.delete = function(options) {
  options.method = "DELETE";
  return request(options);
};
function getData(data) {
  return request({
    method: "post",
    url: "/api/admin/sensitivity/wordManager/page",
    data
  });
}
function addWord(data) {
  return request({
    method: "post",
    url: "/api/admin/sensitivity/wordManager/add",
    data
  });
}
function updateWord(data) {
  return request({
    method: "post",
    url: "/api/admin/sensitivity/wordManager/update",
    data
  });
}
function batchUpdateWord(data) {
  return request({
    method: "post",
    url: "/api/admin/sensitivity/wordManager/updatePatch",
    data
  });
}
function deleteWord(data) {
  return request({
    method: "delete",
    url: "/api/admin/sensitivity/wordManager/deleteWord",
    params: data
  });
}
function batchDeleteWord(data) {
  return request({
    method: "post",
    url: "/api/admin/sensitivity/wordManager/batchDeleteWord",
    data
  });
}
function downLoadTemplate() {
  return request({
    method: "post",
    responseType: "blob",
    url: "/api/admin/sensitivity/wordManager/downLoadExcelTemplate"
  });
}
function uploadTemplate(file) {
  return request({
    method: "post",
    headers: {
      "Accept": "*/*",
      "Content-Type": "multipart/form-data"
    },
    isFormData: true,
    url: "/api/admin/sensitivity/wordManager/uploadExcelTemplate",
    data: {
      file
    }
  });
}
function vailName(data) {
  return request({
    method: "post",
    url: "/api/admin/sensitivity/wordManager/vailName",
    data
  });
}
function getLabelData(data) {
  return request({
    method: "post",
    url: "/api/admin/sensitivity/label/page",
    data
  });
}
function addLabel(data) {
  return request({
    method: "post",
    url: "/api/admin/sensitivity/label/add",
    data
  });
}
function delLabel(data) {
  return request({
    method: "delete",
    url: "/api/admin/sensitivity/label/delete",
    params: data
  });
}
function getLevelList() {
  return request({
    method: "get",
    url: "/api/admin/sensitivity/label/getLevelList",
    params: {}
  });
}
function updateLabel(data) {
  return request({
    method: "post",
    url: "/api/admin/sensitivity/label/update",
    data
  });
}
function getLabelList() {
  return request({
    method: "get",
    url: "/api/admin/sensitivity/label/getLabelList",
    params: {}
  });
}
function labelVailName(data) {
  return request({
    method: "post",
    url: "/api/admin/sensitivity/label/vailLabelName",
    data
  });
}
function getHitList(data) {
  return request({
    method: "post",
    url: "/api/admin/sensitivity/hitManage/page",
    data
  });
}
function getHitDetail(id) {
  return request({
    method: "get",
    url: "/api/admin/sensitivity/hitManage/details",
    params: {
      id
    }
  });
}
function deleteRecord(id) {
  return request({
    method: "delete",
    url: "/api/admin/sensitivity/hitManage/deleteRecord",
    params: id
  });
}
function delContent(id) {
  return request({
    method: "delete",
    url: "/api/admin/sensitivity/hitManage/deleteContent",
    params: id
  });
}
function shieldContent(id) {
  return request({
    method: "delete",
    url: "/api/admin/sensitivity/hitManage/shieldContent",
    params: id
  });
}
function batchDelContent(data) {
  return request({
    method: "post",
    url: "/api/admin/sensitivity/hitManage/batchDeleteContent",
    data
  });
}
function sensitivityCheck() {
  return request({
    method: "post",
    url: "/api/admin/sensitivity/strategy/allCheck",
    data: {}
  });
}
function getInspectData(data) {
  return request({
    method: "post",
    url: "/api/admin/sensitivity/inspect/queryPage",
    data
  });
}
function addInspect(data) {
  return request({
    method: "post",
    url: "/api/admin/sensitivity/inspect/add",
    data
  });
}
function updateInspect(data) {
  return request({
    method: "post",
    url: "/api/admin/sensitivity/inspect/update",
    data
  });
}
function getInspectDetail(id) {
  return request({
    method: "get",
    url: "/api/admin/sensitivity/inspect/getInspectById",
    params: id
  });
}
function delInspect(id) {
  return request({
    method: "get",
    url: "/api/admin/sensitivity/inspect/deleteInspectById",
    params: id
  });
}
function checkRepetition(data) {
  return request({
    method: "post",
    url: "/api/admin/sensitivity/inspect/checkRepetition",
    data
  });
}
function getStrategy() {
  return request({
    method: "get",
    url: "/api/admin/sensitivity/strategy/query",
    params: {}
  });
}
function saveStrategy(data) {
  return request({
    method: "post",
    url: "/api/admin/sensitivity/strategy/save",
    data
  });
}
var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
var dayjs_min = { exports: {} };
(function(module, exports) {
  !function(t, e) {
    module.exports = e();
  }(commonjsGlobal, function() {
    var t = 1e3, e = 6e4, n = 36e5, r = "millisecond", i = "second", s = "minute", u = "hour", a = "day", o = "week", f = "month", h2 = "quarter", c = "year", d = "date", l = "Invalid Date", $ = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, y = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, M = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(t2) {
      var e2 = ["th", "st", "nd", "rd"], n2 = t2 % 100;
      return "[" + t2 + (e2[(n2 - 20) % 10] || e2[n2] || e2[0]) + "]";
    } }, m = function(t2, e2, n2) {
      var r2 = String(t2);
      return !r2 || r2.length >= e2 ? t2 : "" + Array(e2 + 1 - r2.length).join(n2) + t2;
    }, v = { s: m, z: function(t2) {
      var e2 = -t2.utcOffset(), n2 = Math.abs(e2), r2 = Math.floor(n2 / 60), i2 = n2 % 60;
      return (e2 <= 0 ? "+" : "-") + m(r2, 2, "0") + ":" + m(i2, 2, "0");
    }, m: function t2(e2, n2) {
      if (e2.date() < n2.date())
        return -t2(n2, e2);
      var r2 = 12 * (n2.year() - e2.year()) + (n2.month() - e2.month()), i2 = e2.clone().add(r2, f), s2 = n2 - i2 < 0, u2 = e2.clone().add(r2 + (s2 ? -1 : 1), f);
      return +(-(r2 + (n2 - i2) / (s2 ? i2 - u2 : u2 - i2)) || 0);
    }, a: function(t2) {
      return t2 < 0 ? Math.ceil(t2) || 0 : Math.floor(t2);
    }, p: function(t2) {
      return { M: f, y: c, w: o, d: a, D: d, h: u, m: s, s: i, ms: r, Q: h2 }[t2] || String(t2 || "").toLowerCase().replace(/s$/, "");
    }, u: function(t2) {
      return void 0 === t2;
    } }, g = "en", D = {};
    D[g] = M;
    var p = function(t2) {
      return t2 instanceof _;
    }, S = function t2(e2, n2, r2) {
      var i2;
      if (!e2)
        return g;
      if ("string" == typeof e2) {
        var s2 = e2.toLowerCase();
        D[s2] && (i2 = s2), n2 && (D[s2] = n2, i2 = s2);
        var u2 = e2.split("-");
        if (!i2 && u2.length > 1)
          return t2(u2[0]);
      } else {
        var a2 = e2.name;
        D[a2] = e2, i2 = a2;
      }
      return !r2 && i2 && (g = i2), i2 || !r2 && g;
    }, w = function(t2, e2) {
      if (p(t2))
        return t2.clone();
      var n2 = "object" == typeof e2 ? e2 : {};
      return n2.date = t2, n2.args = arguments, new _(n2);
    }, O = v;
    O.l = S, O.i = p, O.w = function(t2, e2) {
      return w(t2, { locale: e2.$L, utc: e2.$u, x: e2.$x, $offset: e2.$offset });
    };
    var _ = function() {
      function M2(t2) {
        this.$L = S(t2.locale, null, true), this.parse(t2);
      }
      var m2 = M2.prototype;
      return m2.parse = function(t2) {
        this.$d = function(t3) {
          var e2 = t3.date, n2 = t3.utc;
          if (null === e2)
            return new Date(NaN);
          if (O.u(e2))
            return new Date();
          if (e2 instanceof Date)
            return new Date(e2);
          if ("string" == typeof e2 && !/Z$/i.test(e2)) {
            var r2 = e2.match($);
            if (r2) {
              var i2 = r2[2] - 1 || 0, s2 = (r2[7] || "0").substring(0, 3);
              return n2 ? new Date(Date.UTC(r2[1], i2, r2[3] || 1, r2[4] || 0, r2[5] || 0, r2[6] || 0, s2)) : new Date(r2[1], i2, r2[3] || 1, r2[4] || 0, r2[5] || 0, r2[6] || 0, s2);
            }
          }
          return new Date(e2);
        }(t2), this.$x = t2.x || {}, this.init();
      }, m2.init = function() {
        var t2 = this.$d;
        this.$y = t2.getFullYear(), this.$M = t2.getMonth(), this.$D = t2.getDate(), this.$W = t2.getDay(), this.$H = t2.getHours(), this.$m = t2.getMinutes(), this.$s = t2.getSeconds(), this.$ms = t2.getMilliseconds();
      }, m2.$utils = function() {
        return O;
      }, m2.isValid = function() {
        return !(this.$d.toString() === l);
      }, m2.isSame = function(t2, e2) {
        var n2 = w(t2);
        return this.startOf(e2) <= n2 && n2 <= this.endOf(e2);
      }, m2.isAfter = function(t2, e2) {
        return w(t2) < this.startOf(e2);
      }, m2.isBefore = function(t2, e2) {
        return this.endOf(e2) < w(t2);
      }, m2.$g = function(t2, e2, n2) {
        return O.u(t2) ? this[e2] : this.set(n2, t2);
      }, m2.unix = function() {
        return Math.floor(this.valueOf() / 1e3);
      }, m2.valueOf = function() {
        return this.$d.getTime();
      }, m2.startOf = function(t2, e2) {
        var n2 = this, r2 = !!O.u(e2) || e2, h3 = O.p(t2), l2 = function(t3, e3) {
          var i2 = O.w(n2.$u ? Date.UTC(n2.$y, e3, t3) : new Date(n2.$y, e3, t3), n2);
          return r2 ? i2 : i2.endOf(a);
        }, $2 = function(t3, e3) {
          return O.w(n2.toDate()[t3].apply(n2.toDate("s"), (r2 ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(e3)), n2);
        }, y2 = this.$W, M3 = this.$M, m3 = this.$D, v2 = "set" + (this.$u ? "UTC" : "");
        switch (h3) {
          case c:
            return r2 ? l2(1, 0) : l2(31, 11);
          case f:
            return r2 ? l2(1, M3) : l2(0, M3 + 1);
          case o:
            var g2 = this.$locale().weekStart || 0, D2 = (y2 < g2 ? y2 + 7 : y2) - g2;
            return l2(r2 ? m3 - D2 : m3 + (6 - D2), M3);
          case a:
          case d:
            return $2(v2 + "Hours", 0);
          case u:
            return $2(v2 + "Minutes", 1);
          case s:
            return $2(v2 + "Seconds", 2);
          case i:
            return $2(v2 + "Milliseconds", 3);
          default:
            return this.clone();
        }
      }, m2.endOf = function(t2) {
        return this.startOf(t2, false);
      }, m2.$set = function(t2, e2) {
        var n2, o2 = O.p(t2), h3 = "set" + (this.$u ? "UTC" : ""), l2 = (n2 = {}, n2[a] = h3 + "Date", n2[d] = h3 + "Date", n2[f] = h3 + "Month", n2[c] = h3 + "FullYear", n2[u] = h3 + "Hours", n2[s] = h3 + "Minutes", n2[i] = h3 + "Seconds", n2[r] = h3 + "Milliseconds", n2)[o2], $2 = o2 === a ? this.$D + (e2 - this.$W) : e2;
        if (o2 === f || o2 === c) {
          var y2 = this.clone().set(d, 1);
          y2.$d[l2]($2), y2.init(), this.$d = y2.set(d, Math.min(this.$D, y2.daysInMonth())).$d;
        } else
          l2 && this.$d[l2]($2);
        return this.init(), this;
      }, m2.set = function(t2, e2) {
        return this.clone().$set(t2, e2);
      }, m2.get = function(t2) {
        return this[O.p(t2)]();
      }, m2.add = function(r2, h3) {
        var d2, l2 = this;
        r2 = Number(r2);
        var $2 = O.p(h3), y2 = function(t2) {
          var e2 = w(l2);
          return O.w(e2.date(e2.date() + Math.round(t2 * r2)), l2);
        };
        if ($2 === f)
          return this.set(f, this.$M + r2);
        if ($2 === c)
          return this.set(c, this.$y + r2);
        if ($2 === a)
          return y2(1);
        if ($2 === o)
          return y2(7);
        var M3 = (d2 = {}, d2[s] = e, d2[u] = n, d2[i] = t, d2)[$2] || 1, m3 = this.$d.getTime() + r2 * M3;
        return O.w(m3, this);
      }, m2.subtract = function(t2, e2) {
        return this.add(-1 * t2, e2);
      }, m2.format = function(t2) {
        var e2 = this, n2 = this.$locale();
        if (!this.isValid())
          return n2.invalidDate || l;
        var r2 = t2 || "YYYY-MM-DDTHH:mm:ssZ", i2 = O.z(this), s2 = this.$H, u2 = this.$m, a2 = this.$M, o2 = n2.weekdays, f2 = n2.months, h3 = function(t3, n3, i3, s3) {
          return t3 && (t3[n3] || t3(e2, r2)) || i3[n3].slice(0, s3);
        }, c2 = function(t3) {
          return O.s(s2 % 12 || 12, t3, "0");
        }, d2 = n2.meridiem || function(t3, e3, n3) {
          var r3 = t3 < 12 ? "AM" : "PM";
          return n3 ? r3.toLowerCase() : r3;
        }, $2 = { YY: String(this.$y).slice(-2), YYYY: this.$y, M: a2 + 1, MM: O.s(a2 + 1, 2, "0"), MMM: h3(n2.monthsShort, a2, f2, 3), MMMM: h3(f2, a2), D: this.$D, DD: O.s(this.$D, 2, "0"), d: String(this.$W), dd: h3(n2.weekdaysMin, this.$W, o2, 2), ddd: h3(n2.weekdaysShort, this.$W, o2, 3), dddd: o2[this.$W], H: String(s2), HH: O.s(s2, 2, "0"), h: c2(1), hh: c2(2), a: d2(s2, u2, true), A: d2(s2, u2, false), m: String(u2), mm: O.s(u2, 2, "0"), s: String(this.$s), ss: O.s(this.$s, 2, "0"), SSS: O.s(this.$ms, 3, "0"), Z: i2 };
        return r2.replace(y, function(t3, e3) {
          return e3 || $2[t3] || i2.replace(":", "");
        });
      }, m2.utcOffset = function() {
        return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
      }, m2.diff = function(r2, d2, l2) {
        var $2, y2 = O.p(d2), M3 = w(r2), m3 = (M3.utcOffset() - this.utcOffset()) * e, v2 = this - M3, g2 = O.m(this, M3);
        return g2 = ($2 = {}, $2[c] = g2 / 12, $2[f] = g2, $2[h2] = g2 / 3, $2[o] = (v2 - m3) / 6048e5, $2[a] = (v2 - m3) / 864e5, $2[u] = v2 / n, $2[s] = v2 / e, $2[i] = v2 / t, $2)[y2] || v2, l2 ? g2 : O.a(g2);
      }, m2.daysInMonth = function() {
        return this.endOf(f).$D;
      }, m2.$locale = function() {
        return D[this.$L];
      }, m2.locale = function(t2, e2) {
        if (!t2)
          return this.$L;
        var n2 = this.clone(), r2 = S(t2, e2, true);
        return r2 && (n2.$L = r2), n2;
      }, m2.clone = function() {
        return O.w(this.$d, this);
      }, m2.toDate = function() {
        return new Date(this.valueOf());
      }, m2.toJSON = function() {
        return this.isValid() ? this.toISOString() : null;
      }, m2.toISOString = function() {
        return this.$d.toISOString();
      }, m2.toString = function() {
        return this.$d.toUTCString();
      }, M2;
    }(), T = _.prototype;
    return w.prototype = T, [["$ms", r], ["$s", i], ["$m", s], ["$H", u], ["$W", a], ["$M", f], ["$y", c], ["$D", d]].forEach(function(t2) {
      T[t2[1]] = function(e2) {
        return this.$g(e2, t2[0], t2[1]);
      };
    }), w.extend = function(t2, e2) {
      return t2.$i || (t2(e2, _, w), t2.$i = true), w;
    }, w.locale = S, w.isDayjs = p, w.unix = function(t2) {
      return w(1e3 * t2);
    }, w.en = D[g], w.Ls = D, w.p = {}, w;
  });
})(dayjs_min);
var moment = dayjs_min.exports;
var index_vue_vue_type_style_index_0_scoped_true_lang$4 = "";
var _export_sfc = (sfc, props) => {
  const target = sfc.__vccOpts || sfc;
  for (const [key, val] of props) {
    target[key] = val;
  }
  return target;
};
const _withScopeId$2 = (n) => (pushScopeId("data-v-48c2803a"), n = n(), popScopeId(), n);
const _hoisted_1$5 = { class: "index" };
const _hoisted_2$5 = { class: "searchContain" };
const _hoisted_3$4 = { class: "search-form" };
const _hoisted_4$4 = { class: "btn" };
const _hoisted_5$3 = { class: "contentContain" };
const _hoisted_6$3 = /* @__PURE__ */ _withScopeId$2(() => /* @__PURE__ */ createElementVNode("p", { style: { "margin": "5px 0 0", "padding-bottom": "10px" } }, "\u4E0A\u4F20\u8BCD\u5E93excel\u6587\u4EF6", -1));
const _hoisted_7$2 = { class: "ant-upload-drag-icon" };
const _hoisted_8$2 = /* @__PURE__ */ _withScopeId$2(() => /* @__PURE__ */ createElementVNode("p", { class: "ant-upload-text" }, "\u70B9\u51FB\u6216\u5C06\u6587\u4EF6\u62D6\u62FD\u5230\u8FD9\u91CC\u4E0A\u4F20", -1));
const _hoisted_9$1 = /* @__PURE__ */ _withScopeId$2(() => /* @__PURE__ */ createElementVNode("p", { class: "ant-upload-hint" }, "\u652F\u6301\u6269\u5C55\u540D\uFF1A .xls\uFF0C.xlsx", -1));
const _sfc_main$5 = /* @__PURE__ */ defineComponent({
  __name: "index",
  setup(__props) {
    const { pagination } = usePagination({
      onChange() {
        getList();
      }
    });
    const loading = ref(false);
    const operations = {
      hiddenView: true,
      hiddenEdit: true,
      hiddenDelete: true
    };
    const searchForm = reactive({
      content: "",
      level: "",
      label: [],
      createTime: []
    });
    const levelOptions = ref([]);
    const labelOptions = ref([]);
    const labelOptions2 = ref([]);
    const modalOptions = ref([]);
    const dataState = reactive({
      selectedRowKeys: []
    });
    const sourceData = ref([]);
    const columns = [
      { title: "\u654F\u611F\u8BCD\u5185\u5BB9", dataIndex: "content", key: "content" },
      { title: "\u521B\u5EFA\u65F6\u95F4", dataIndex: "createTime", key: "createTime" },
      { title: "\u654F\u611F\u8BCD\u7EA7\u522B", dataIndex: "level", key: "level" },
      { title: "\u6240\u5C5E\u6807\u7B7E", dataIndex: "labelDesc", key: "labelDesc" },
      { title: "\u64CD\u4F5C", dataIndex: "operation", key: "operation" }
    ];
    const modal = ref({
      isAdd: false,
      visible: false,
      loading: false
    });
    const title = ref("");
    const form = ref({
      content: "",
      level: "",
      label: [],
      id: ""
    });
    const batchModal = ref({
      isAdd: false,
      visible: false,
      loading: false
    });
    const batch = ref({
      level: "",
      label: []
    });
    const importModal = ref({
      isAdd: false,
      visible: false,
      loading: false
    });
    const checkName = async (rule, value) => {
      if (!value) {
        return Promise.reject(new Error("\u8BF7\u8F93\u5165\u654F\u611F\u8BCD\u540D\u79F0\uFF01"));
      } else {
        const data = await vailName({
          id: form.value.id,
          content: value
        });
        if (data.code === "8200" && data.data) {
          return Promise.reject(new Error("\u8BE5\u654F\u611F\u8BCD\u5DF2\u5B58\u5728\uFF01"));
        }
      }
    };
    const formRef = ref(null);
    const search = () => {
      pagination.current = 1;
      getList();
    };
    const reset = () => {
      searchForm.content = "";
      searchForm.level = "";
      searchForm.label = [];
      searchForm.createTime = [];
      search();
    };
    const add = () => {
      form.value.content = "";
      form.value.level = "";
      form.value.label = [];
      form.value.id = "";
      modal.value.visible = true;
      title.value = "\u65B0\u589E\u654F\u611F\u8BCD";
    };
    const cancel = () => {
      formRef.value.resetFields();
      form.value.content = "";
      form.value.level = "";
      form.value.label = [];
      form.value.id = "";
      modal.value.visible = false;
    };
    const submit = () => {
      formRef.value.validate().then(() => {
        const request2 = title.value.indexOf("\u65B0\u589E") > -1 ? addWord : updateWord;
        modal.value.loading = true;
        const { label, ...obj } = form.value;
        request2({ label: label.length > 0 ? label.toString() : null, ...obj }).then(() => {
          message.success("\u64CD\u4F5C\u6210\u529F\uFF01");
          modal.value.loading = false;
          cancel();
          getList();
        });
      }).catch(() => {
      });
    };
    const importFile = () => {
      fileList.value = [];
      importModal.value.visible = true;
    };
    const batchEdit = () => {
      if (dataState.selectedRowKeys.length > 0) {
        batchModal.value.visible = true;
      } else {
        message.error("\u8BF7\u9009\u62E9\u9700\u8981\u4FEE\u6539\u7684\u654F\u611F\u8BCD");
      }
    };
    const batchSubmit = () => {
      batchModal.value.loading = true;
      batchUpdateWord({
        ids: dataState.selectedRowKeys,
        label: batch.value.label.length > 0 ? batch.value.label.toString() : null,
        level: batch.value.level
      }).then(() => {
        message.success("\u64CD\u4F5C\u6210\u529F\uFF01");
        dataState.selectedRowKeys = [];
        batchCancel();
        getList();
        batchModal.value.loading = false;
      }).catch(() => {
        batchModal.value.loading = false;
      });
    };
    const batchCancel = () => {
      batch.value.level = "";
      batch.value.label = [];
      batchModal.value.visible = false;
    };
    const edit = (item) => {
      modal.value.visible = true;
      title.value = "\u7F16\u8F91\u654F\u611F\u8BCD";
      form.value.content = item.content;
      form.value.level = item.level;
      form.value.label = item.label ? item.label.split(",") : [];
      form.value.id = item.id;
    };
    const del = (item, type) => {
      if (type === "batch" && dataState.selectedRowKeys.length === 0) {
        message.error("\u672A\u9009\u62E9\u654F\u611F\u8BCD\uFF0C\u8BF7\u9009\u62E9\u540E\u518D\u5220\u9664\uFF01");
        return;
      }
      Modal.confirm({
        title: "\u786E\u5B9A\u5220\u9664\u5417\uFF1F",
        icon: createVNode(ExclamationCircleOutlined$1),
        content: "\u5220\u9664\u540E\uFF0C\u5217\u8868\u5C06\u4E0D\u518D\u663E\u793A\uFF0C\u540C\u65F6\u5C06\u4E0D\u5728\u7A3D\u67E5\u8BE5\u8BCD\uFF0C\u8BF7\u8C28\u614E\u64CD\u4F5C\uFF01",
        okText: "\u7EE7\u7EED",
        cancelText: "\u53D6\u6D88",
        async onOk() {
          try {
            return await new Promise((resolve, reject) => {
              setTimeout(() => {
                if (type === "single") {
                  deleteWord({
                    id: item.id,
                    labelName: item.labelName
                  }).then(() => {
                    message.success("\u64CD\u4F5C\u6210\u529F\uFF01");
                    resolve();
                    getPage(1);
                    getList();
                  }).catch(() => {
                    reject();
                  });
                } else {
                  batchDeleteWord({
                    ids: dataState.selectedRowKeys
                  }).then(() => {
                    message.success("\u64CD\u4F5C\u6210\u529F\uFF01");
                    resolve();
                    getPage(dataState.selectedRowKeys.length);
                    getList();
                  }).catch(() => {
                    reject();
                  });
                }
              }, 1e3);
            });
          } catch {
            return console.log("errors!");
          }
        },
        onCancel() {
          console.log("Cancel");
        }
      });
    };
    const onSelectChange = (selectedRowKeys) => {
      dataState.selectedRowKeys = selectedRowKeys;
    };
    const download = () => {
      downLoadTemplate().then((res) => {
        const url = window.URL.createObjectURL(res);
        const a = document.createElement("a");
        a.href = url;
        a.download = "\u8BCD\u5E93\u6A21\u7248.xlsx";
        a.click();
        window.URL.revokeObjectURL(url);
      });
    };
    const beforeUpload = () => {
      return false;
    };
    const fileList = ref([]);
    const importCancel = () => {
      importModal.value.visible = false;
    };
    const importSubmit = () => {
      if (fileList.value.length > 0) {
        if (fileList.value[0].name.indexOf(".xls") > -1) {
          importModal.value.loading = true;
          uploadTemplate(fileList.value[0].originFileObj).then((res) => {
            notification["success"]({
              message: "\u64CD\u4F5C\u6210\u529F\uFF01",
              description: `\u6210\u529F${res.data.successCount}\u6761\uFF0C\u5931\u8D25${res.data.failCount}\u6761`
            });
            importModal.value.visible = false;
            importModal.value.loading = false;
            getList();
          }).catch(() => {
            importModal.value.loading = false;
          });
        } else {
          importModal.value.loading = false;
          message.error(`\u6587\u4EF6\u683C\u5F0F\u9519\u8BEF,\u8BF7\u66F4\u6362\uFF01`);
        }
      } else {
        importModal.value.loading = false;
        message.error("\u8BF7\u4E0A\u4F20\u6587\u4EF6");
      }
    };
    const getList = () => {
      loading.value = true;
      const { createTime, label, ...obj } = searchForm;
      getData({
        ...obj,
        label: label.length > 0 ? label.toString() : null,
        startTime: createTime.length > 0 ? moment(createTime[0]).format("YYYY-MM-DD") : "",
        endTime: createTime.length > 0 ? moment(createTime[1]).format("YYYY-MM-DD") : "",
        size: pagination.pageSize,
        current: pagination.current
      }).then((res) => {
        pagination.total = res.data.total;
        sourceData.value = res.data.records;
        loading.value = false;
      }).catch(() => {
        loading.value = false;
      });
    };
    const getPage = (length) => {
      if (pagination.current !== 1 && pagination.total - length === (pagination.current - 1) * pagination.pageSize) {
        pagination.current--;
      }
    };
    const getLevel = () => {
      getLevelList().then((res) => {
        const levelList = res.data.map((t) => {
          return {
            label: t.levelName,
            value: t.code
          };
        });
        const modalList = levelList.filter((t) => {
          return t.label !== "\u7A7A";
        });
        modalOptions.value = [{ label: "\u8BF7\u9009\u62E9", value: "" }, ...modalList];
        const arr = [{ label: "\u5168\u90E8", value: "" }, ...levelList];
        levelOptions.value = arr;
      });
    };
    const getLabel = () => {
      getLabelList().then((res) => {
        labelOptions2.value = res.data.map(
          (t) => {
            return {
              label: t.labelName,
              value: t.id
            };
          }
        );
        const arr = [
          { label: "\u5168\u90E8", value: "" },
          ...labelOptions2.value,
          { label: "\u7A7A", value: "empty" }
        ];
        labelOptions.value = arr;
      });
    };
    const recordName = (level) => {
      let des = "";
      modalOptions.value.map((t) => {
        if (t.value === level) {
          return des = t.label;
        }
      });
      return des;
    };
    const handleChange = (value) => {
      if (value.length > 0 && value.indexOf("") > -1) {
        searchForm.label = [""];
      } else {
        searchForm.label = value;
      }
    };
    onMounted(() => {
      getLevel();
      getLabel();
      getList();
    });
    return (_ctx, _cache) => {
      const _component_a_input = resolveComponent("a-input");
      const _component_a_form_item = resolveComponent("a-form-item");
      const _component_a_select = resolveComponent("a-select");
      const _component_a_range_picker = resolveComponent("a-range-picker");
      const _component_a_button = resolveComponent("a-button");
      const _component_a_form = resolveComponent("a-form");
      const _component_a_modal = resolveComponent("a-modal");
      const _component_a_upload_dragger = resolveComponent("a-upload-dragger");
      return openBlock(), createElementBlock("div", _hoisted_1$5, [
        createElementVNode("div", _hoisted_2$5, [
          createElementVNode("div", _hoisted_3$4, [
            createVNode(_component_a_form, {
              model: searchForm,
              name: "searchForm",
              layout: "inline"
            }, {
              default: withCtx(() => [
                createVNode(_component_a_form_item, {
                  label: "\u654F\u611F\u8BCD\u5185\u5BB9",
                  name: "content",
                  class: "item"
                }, {
                  default: withCtx(() => [
                    createVNode(_component_a_input, {
                      value: searchForm.content,
                      "onUpdate:value": _cache[0] || (_cache[0] = ($event) => searchForm.content = $event),
                      placeholder: "\u8BF7\u8F93\u5165",
                      style: { "width": "150px" }
                    }, null, 8, ["value"])
                  ]),
                  _: 1
                }),
                createVNode(_component_a_form_item, {
                  label: "\u654F\u611F\u8BCD\u7EA7\u522B",
                  name: "level",
                  class: "item"
                }, {
                  default: withCtx(() => [
                    createVNode(_component_a_select, {
                      value: searchForm.level,
                      "onUpdate:value": _cache[1] || (_cache[1] = ($event) => searchForm.level = $event),
                      style: { "width": "100px" },
                      options: levelOptions.value
                    }, null, 8, ["value", "options"])
                  ]),
                  _: 1
                }),
                createVNode(_component_a_form_item, {
                  label: "\u6240\u5C5E\u6807\u7B7E",
                  name: "label",
                  class: "item"
                }, {
                  default: withCtx(() => [
                    createVNode(_component_a_select, {
                      value: searchForm.label,
                      "onUpdate:value": _cache[2] || (_cache[2] = ($event) => searchForm.label = $event),
                      mode: "multiple",
                      style: { "width": "150px" },
                      options: labelOptions.value,
                      onChange: handleChange
                    }, null, 8, ["value", "options"])
                  ]),
                  _: 1
                }),
                createVNode(_component_a_form_item, {
                  label: "\u521B\u5EFA\u65F6\u95F4",
                  name: "createTime",
                  class: "item"
                }, {
                  default: withCtx(() => [
                    createVNode(_component_a_range_picker, {
                      value: searchForm.createTime,
                      "onUpdate:value": _cache[3] || (_cache[3] = ($event) => searchForm.createTime = $event),
                      style: { "width": "250px" }
                    }, null, 8, ["value"])
                  ]),
                  _: 1
                }),
                createVNode(_component_a_button, {
                  type: "primary",
                  class: "item",
                  onClick: search
                }, {
                  icon: withCtx(() => [
                    createVNode(unref(SearchOutlined$1))
                  ]),
                  default: withCtx(() => [
                    createTextVNode(" \u67E5\u8BE2 ")
                  ]),
                  _: 1
                }),
                createVNode(_component_a_button, {
                  type: "primary",
                  class: "item",
                  onClick: reset
                }, {
                  icon: withCtx(() => [
                    createVNode(unref(SyncOutlined$1))
                  ]),
                  default: withCtx(() => [
                    createTextVNode(" \u91CD\u7F6E ")
                  ]),
                  _: 1
                })
              ]),
              _: 1
            }, 8, ["model"]),
            createElementVNode("div", _hoisted_4$4, [
              createVNode(_component_a_button, {
                type: "primary",
                onClick: add
              }, {
                default: withCtx(() => [
                  createTextVNode("\u65B0\u589E\u8BCD\u5E93")
                ]),
                _: 1
              }),
              createVNode(_component_a_button, {
                type: "primary",
                onClick: importFile
              }, {
                default: withCtx(() => [
                  createTextVNode("\u5BFC\u5165\u8BCD\u5E93")
                ]),
                _: 1
              }),
              createVNode(_component_a_button, {
                type: "primary",
                onClick: batchEdit
              }, {
                default: withCtx(() => [
                  createTextVNode("\u6279\u91CF\u4FEE\u6539")
                ]),
                _: 1
              }),
              createVNode(_component_a_button, {
                type: "primary",
                onClick: _cache[4] || (_cache[4] = ($event) => del("", "batch"))
              }, {
                default: withCtx(() => [
                  createTextVNode("\u6279\u91CF\u5220\u9664")
                ]),
                _: 1
              })
            ])
          ])
        ]),
        createElementVNode("div", _hoisted_5$3, [
          createVNode(_sfc_main$6, {
            columns,
            "data-source": sourceData.value,
            pagination: unref(pagination),
            operation: operations,
            loading: loading.value,
            "row-key": "id",
            "row-selection": {
              type: "checkbox",
              selectedRowKeys: dataState.selectedRowKeys,
              onChange: onSelectChange
            }
          }, {
            bodyCell: withCtx(({ column, record }) => [
              column.key === "level" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
                createTextVNode(toDisplayString(recordName(record.level)), 1)
              ], 64)) : createCommentVNode("", true),
              column.key === "operation" ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
                createVNode(_component_a_button, {
                  type: "text",
                  size: "small",
                  onClick: ($event) => edit(record)
                }, {
                  default: withCtx(() => [
                    createTextVNode(" \u7F16\u8F91 ")
                  ]),
                  _: 2
                }, 1032, ["onClick"]),
                createVNode(_component_a_button, {
                  type: "text",
                  size: "small",
                  danger: "",
                  onClick: ($event) => del(record, "single")
                }, {
                  default: withCtx(() => [
                    createTextVNode(" \u5220\u9664 ")
                  ]),
                  _: 2
                }, 1032, ["onClick"])
              ], 64)) : createCommentVNode("", true)
            ]),
            _: 1
          }, 8, ["data-source", "pagination", "loading", "row-selection"])
        ]),
        createVNode(_component_a_modal, {
          visible: modal.value.visible,
          "onUpdate:visible": _cache[8] || (_cache[8] = ($event) => modal.value.visible = $event),
          "confirm-loading": modal.value.loading,
          "mask-closable": false,
          title: title.value,
          centered: "",
          onCancel: cancel,
          onOk: submit
        }, {
          default: withCtx(() => [
            createVNode(_component_a_form, {
              model: form.value,
              ref_key: "formRef",
              ref: formRef,
              name: "form",
              "label-col": { span: 6 },
              "wrapper-col": { span: 18 }
            }, {
              default: withCtx(() => [
                createVNode(_component_a_form_item, {
                  label: "\u654F\u611F\u8BCD\u540D\u79F0",
                  name: "content",
                  rules: [{ required: true, validator: checkName, trigger: "blur" }]
                }, {
                  default: withCtx(() => [
                    createVNode(_component_a_input, {
                      value: form.value.content,
                      "onUpdate:value": _cache[5] || (_cache[5] = ($event) => form.value.content = $event),
                      maxlength: "12",
                      placeholder: "\u965012\u5B57\u7B26"
                    }, null, 8, ["value"])
                  ]),
                  _: 1
                }, 8, ["rules"]),
                createVNode(_component_a_form_item, {
                  label: "\u654F\u611F\u8BCD\u7B49\u7EA7",
                  name: "level"
                }, {
                  default: withCtx(() => [
                    createVNode(_component_a_select, {
                      value: form.value.level,
                      "onUpdate:value": _cache[6] || (_cache[6] = ($event) => form.value.level = $event),
                      options: modalOptions.value
                    }, null, 8, ["value", "options"])
                  ]),
                  _: 1
                }),
                createVNode(_component_a_form_item, {
                  label: "\u6240\u5C5E\u6807\u7B7E",
                  name: "label"
                }, {
                  default: withCtx(() => [
                    createVNode(_component_a_select, {
                      "not-found-content": "\u6682\u65E0\u6807\u7B7E\uFF0C\u8BF7\u5148\u8BBE\u7F6E\u6807\u7B7E",
                      value: form.value.label,
                      "onUpdate:value": _cache[7] || (_cache[7] = ($event) => form.value.label = $event),
                      mode: "multiple",
                      options: labelOptions2.value
                    }, null, 8, ["value", "options"])
                  ]),
                  _: 1
                })
              ]),
              _: 1
            }, 8, ["model"])
          ]),
          _: 1
        }, 8, ["visible", "confirm-loading", "title"]),
        createVNode(_component_a_modal, {
          visible: batchModal.value.visible,
          "onUpdate:visible": _cache[11] || (_cache[11] = ($event) => batchModal.value.visible = $event),
          "confirm-loading": batchModal.value.loading,
          "mask-closable": false,
          title: "\u6279\u91CF\u4FEE\u6539",
          centered: "",
          onCancel: batchCancel,
          onOk: batchSubmit
        }, {
          default: withCtx(() => [
            createVNode(_component_a_form, {
              model: batch.value,
              ref: "batchRef",
              name: "batch",
              "label-col": { span: 6 },
              "wrapper-col": { span: 18 }
            }, {
              default: withCtx(() => [
                createVNode(_component_a_form_item, null, {
                  default: withCtx(() => [
                    createTextVNode(" \u60A8\u5373\u5C06\u5BF9 " + toDisplayString(dataState.selectedRowKeys.length) + " \u4E2A\u8BCD\u8FDB\u884C\u4FEE\u6539 ", 1)
                  ]),
                  _: 1
                }),
                createVNode(_component_a_form_item, {
                  label: "\u654F\u611F\u8BCD\u7B49\u7EA7",
                  name: "level"
                }, {
                  default: withCtx(() => [
                    createVNode(_component_a_select, {
                      value: batch.value.level,
                      "onUpdate:value": _cache[9] || (_cache[9] = ($event) => batch.value.level = $event),
                      options: modalOptions.value
                    }, null, 8, ["value", "options"])
                  ]),
                  _: 1
                }),
                createVNode(_component_a_form_item, {
                  label: "\u6240\u5C5E\u6807\u7B7E",
                  name: "label"
                }, {
                  default: withCtx(() => [
                    createVNode(_component_a_select, {
                      value: batch.value.label,
                      "onUpdate:value": _cache[10] || (_cache[10] = ($event) => batch.value.label = $event),
                      mode: "multiple",
                      options: labelOptions2.value
                    }, null, 8, ["value", "options"])
                  ]),
                  _: 1
                })
              ]),
              _: 1
            }, 8, ["model"])
          ]),
          _: 1
        }, 8, ["visible", "confirm-loading"]),
        createVNode(_component_a_modal, {
          title: "\u5BFC\u5165\u8BCD\u5E93",
          visible: importModal.value.visible,
          "onUpdate:visible": _cache[13] || (_cache[13] = ($event) => importModal.value.visible = $event),
          "confirm-loading": importModal.value.loading,
          "mask-closable": false,
          width: 600,
          onCancel: importCancel,
          onOk: importSubmit
        }, {
          default: withCtx(() => [
            createVNode(_component_a_form, {
              name: "importForm",
              "label-col": { span: 4 },
              "wrapper-col": { span: 20 }
            }, {
              default: withCtx(() => [
                createVNode(_component_a_form_item, { label: "\u7B2C\u4E00\u6B65" }, {
                  default: withCtx(() => [
                    createTextVNode(" \u4E0B\u8F7D\u8BCD\u5E93\u6A21\u7248 "),
                    createVNode(_component_a_button, {
                      type: "primary",
                      onClick: download
                    }, {
                      default: withCtx(() => [
                        createTextVNode("\u4E0B\u8F7D\u6A21\u7248")
                      ]),
                      _: 1
                    })
                  ]),
                  _: 1
                }),
                createVNode(_component_a_form_item, { label: "\u7B2C\u4E8C\u6B65" }, {
                  default: withCtx(() => [
                    _hoisted_6$3,
                    createVNode(_component_a_upload_dragger, mergeProps({
                      fileList: fileList.value,
                      "onUpdate:fileList": _cache[12] || (_cache[12] = ($event) => fileList.value = $event),
                      name: "file",
                      accept: ".xls,.xlsx",
                      "max-count": 1,
                      action: "",
                      "before-upload": beforeUpload
                    }, _ctx.$attrs), {
                      default: withCtx(() => [
                        createElementVNode("p", _hoisted_7$2, [
                          createVNode(unref(InboxOutlined$1))
                        ]),
                        _hoisted_8$2,
                        _hoisted_9$1
                      ]),
                      _: 1
                    }, 16, ["fileList"])
                  ]),
                  _: 1
                })
              ]),
              _: 1
            })
          ]),
          _: 1
        }, 8, ["visible", "confirm-loading"])
      ]);
    };
  }
});
var lexiconManagementComponent = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-48c2803a"]]);
var hitTab_vue_vue_type_style_index_0_scoped_true_lang = "";
const _withScopeId$1 = (n) => (pushScopeId("data-v-325d07e9"), n = n(), popScopeId(), n);
const _hoisted_1$4 = { class: "index" };
const _hoisted_2$4 = { class: "searchContain" };
const _hoisted_3$3 = { class: "search-form" };
const _hoisted_4$3 = { class: "contentContain" };
const _hoisted_5$2 = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ createElementVNode("p", null, "\u5185\u5BB9\u8BE6\u60C5\uFF1A", -1));
const _hoisted_6$2 = { class: "left" };
const _hoisted_7$1 = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ createElementVNode("span", { class: "middle" }, "\uFF1A", -1));
const _hoisted_8$1 = ["innerHTML"];
const _sfc_main$4 = /* @__PURE__ */ defineComponent({
  __name: "hitTab",
  props: {
    activeKey: {
      type: Number,
      default: 0
    },
    levelOptions: {
      type: Array,
      default: () => {
        return [];
      }
    },
    dictionaryData: {
      type: Array,
      default: () => {
        return [];
      }
    }
  },
  emits: ["updateQuantity", "changeCheck"],
  setup(__props, { emit: emits }) {
    const props = __props;
    const { pagination } = usePagination({
      onChange() {
        getList();
      }
    });
    const loading = ref(false);
    const spinning = ref(false);
    const operations = {
      hiddenView: true,
      hiddenEdit: true,
      hiddenDelete: true
    };
    const searchForm = reactive({
      accountName: "",
      accountType: "",
      sourceType: "",
      level: "",
      createTime: []
    });
    const typeOptions = ref([
      { label: "\u5168\u90E8", value: "" },
      { label: "\u6E38\u5BA2", value: "0" },
      { label: "\u8FD0\u8425", value: "1" },
      { label: "\u4F9B\u5E94\u5546", value: "2" },
      { label: "\u5546\u5BB6", value: "3" }
    ]);
    const sourceData = ref([]);
    const dataState = reactive({
      selectedRowKeys: []
    });
    const onSelectChange = (selectedRowKeys) => {
      dataState.selectedRowKeys = selectedRowKeys;
    };
    const columns = [
      { title: "\u7A3D\u67E5\u7F16\u53F7", dataIndex: "id", key: "id" },
      { title: "\u7A3D\u67E5\u65F6\u95F4", dataIndex: "checkTime", key: "checkTime" },
      { title: "\u5185\u5BB9\u6807\u9898", dataIndex: "contentTitle", key: "contentTitle" },
      { title: "\u53D1\u5E03\u8D26\u53F7", dataIndex: "accountName", key: "accountName" },
      { title: "\u8D26\u53F7\u7C7B\u522B", dataIndex: "accountTypeName", key: "accountTypeName" },
      { title: "\u4E1A\u52A1\u6765\u6E90", dataIndex: "sourceType", key: "sourceType" },
      { title: "\u654F\u611F\u8BCD\u7EA7\u522B", dataIndex: "level", key: "level" },
      { title: "\u5185\u5BB9\u72B6\u6001", dataIndex: "contentStatusName", key: "contentStatusName" },
      { title: "\u5904\u7406\u72B6\u6001", dataIndex: "handlerStatusName", key: "handlerStatusName" },
      { title: "\u64CD\u4F5C", dataIndex: "operation", key: "operation" }
    ];
    const search = () => {
      pagination.current = 1;
      getList();
    };
    const modal = ref({
      visible: false,
      loading: false,
      detail: {
        contentTitle: ""
      }
    });
    const hitFieldList = ref([]);
    const reset = () => {
      searchForm.accountName = "";
      searchForm.accountType = "";
      searchForm.sourceType = "";
      searchForm.level = "";
      searchForm.createTime = [];
      dataState.selectedRowKeys = [];
      search();
    };
    const check = (item) => {
      modal.value.visible = true;
      spinning.value = true;
      getHitDetail(item.id).then((res) => {
        modal.value.detail = res.data;
        hitFieldList.value = res.data.hitFieldList.map((t) => {
          return {
            ...t,
            hitContent: changeContent(t.hitContent)
          };
        });
        spinning.value = false;
      }).catch(() => {
        spinning.value = false;
      });
    };
    const changeContent = (val) => {
      const arrEntities = { "lt": "<", "gt": ">", "nbsp": " ", "amp": "&", "quot": '"' };
      return val.replace(/&(lt|gt|nbsp|amp|quot);/ig, function(all2, t) {
        return arrEntities[t];
      });
    };
    const shield = (item) => {
      shieldContent({ id: item.id }).then(() => {
        message.success("\u64CD\u4F5C\u6210\u529F\uFF01");
        getList();
      });
    };
    const del = (item, type) => {
      if (type === "batch" && dataState.selectedRowKeys.length === 0) {
        message.error("\u672A\u9009\u62E9\u7A3D\u67E5\u5185\u5BB9\uFF0C\u8BF7\u9009\u62E9\u540E\u518D\u5220\u9664\uFF01");
        return;
      }
      Modal.confirm({
        title: "\u786E\u5B9A\u5220\u9664\u5417\uFF1F",
        icon: createVNode(ExclamationCircleOutlined$1),
        content: "\u5220\u9664\u540E\uFF0C\u5185\u5BB9\u5C06\u4E0D\u663E\u793A\u5728\u524D\u53F0\uFF0C\u540C\u65F6\u5185\u5BB9\u6240\u5728\u5217\u8868\u4E5F\u5C06\u6E05\u7A7A\uFF0C\u8BF7\u8C28\u614E\u64CD\u4F5C\uFF01",
        okText: "\u7EE7\u7EED",
        cancelText: "\u53D6\u6D88",
        async onOk() {
          try {
            return await new Promise((resolve, reject) => {
              setTimeout(() => {
                if (type === "single") {
                  delContent({
                    id: item.id
                  }).then(() => {
                    message.success("\u64CD\u4F5C\u6210\u529F\uFF01");
                    resolve();
                    getPage(1);
                    getList();
                  }).catch(() => {
                    reject();
                  });
                } else {
                  batchDelContent({
                    ids: dataState.selectedRowKeys
                  }).then(() => {
                    message.success("\u64CD\u4F5C\u6210\u529F\uFF01");
                    resolve();
                    getPage(dataState.selectedRowKeys.length);
                    getList();
                  }).catch(() => {
                    reject();
                  });
                }
              }, 1e3);
            });
          } catch {
            return console.log("errors!");
          }
        },
        onCancel() {
          console.log("Cancel");
        }
      });
    };
    const delRecord = (item) => {
      Modal.confirm({
        title: "\u786E\u5B9A\u5220\u9664\u5417\uFF1F",
        icon: createVNode(ExclamationCircleOutlined$1),
        content: "\u5220\u9664\u540E\uFF0C\u5C06\u4E0D\u663E\u793A\u5728\u672C\u8BB0\u5F55\u5217\u8868\uFF0C\u8BF7\u8C28\u614E\u64CD\u4F5C\uFF01",
        okText: "\u7EE7\u7EED",
        cancelText: "\u53D6\u6D88",
        async onOk() {
          try {
            return await new Promise((resolve, reject) => {
              setTimeout(() => {
                deleteRecord({
                  id: item.id
                }).then((res) => {
                  if (res.data) {
                    message.success("\u64CD\u4F5C\u6210\u529F\uFF01");
                    resolve();
                    getPage(1);
                    getList();
                  } else {
                    message.error("\u64CD\u4F5C\u5931\u8D25\uFF01");
                  }
                }).catch(() => {
                  reject();
                });
              }, 1e3);
            });
          } catch {
            return console.log("errors!");
          }
        },
        onCancel() {
          console.log("Cancel");
        }
      });
    };
    const getList = () => {
      loading.value = true;
      const { createTime, ...obj } = searchForm;
      getHitList({
        ...obj,
        handlerStatus: props.activeKey === -1 ? "" : props.activeKey,
        checkStartTime: createTime.length > 0 ? moment(createTime[0]).format("YYYY-MM-DD") : "",
        checkEndTime: createTime.length > 0 ? moment(createTime[1]).format("YYYY-MM-DD") : "",
        size: pagination.pageSize,
        current: pagination.current
      }).then((res) => {
        pagination.total = res.data.total;
        sourceData.value = res.data.records;
        const arr = [0, res.data.statusTotalCount, 0];
        emits("updateQuantity", arr);
        emits("changeCheck", res.data.allChecked);
        loading.value = false;
      }).catch(() => {
        loading.value = false;
      });
    };
    const getPage = (length) => {
      if (pagination.current !== 1 && pagination.total - length === (pagination.current - 1) * pagination.pageSize) {
        pagination.current--;
      }
    };
    onMounted(() => {
      getList();
    });
    return (_ctx, _cache) => {
      const _component_a_input = resolveComponent("a-input");
      const _component_a_form_item = resolveComponent("a-form-item");
      const _component_a_select = resolveComponent("a-select");
      const _component_a_select_option = resolveComponent("a-select-option");
      const _component_a_range_picker = resolveComponent("a-range-picker");
      const _component_a_button = resolveComponent("a-button");
      const _component_a_form = resolveComponent("a-form");
      const _component_a_spin = resolveComponent("a-spin");
      const _component_a_modal = resolveComponent("a-modal");
      return openBlock(), createElementBlock("div", _hoisted_1$4, [
        createElementVNode("div", _hoisted_2$4, [
          createElementVNode("div", _hoisted_3$3, [
            createVNode(_component_a_form, {
              model: searchForm,
              name: "searchForm",
              layout: "inline"
            }, {
              default: withCtx(() => [
                createVNode(_component_a_form_item, {
                  label: "\u53D1\u5E03\u8D26\u53F7",
                  name: "accountName",
                  class: "item"
                }, {
                  default: withCtx(() => [
                    createVNode(_component_a_input, {
                      value: searchForm.accountName,
                      "onUpdate:value": _cache[0] || (_cache[0] = ($event) => searchForm.accountName = $event),
                      style: { "width": "150px" }
                    }, null, 8, ["value"])
                  ]),
                  _: 1
                }),
                createVNode(_component_a_form_item, {
                  label: "\u8D26\u53F7\u7C7B\u522B",
                  name: "accountType",
                  class: "item"
                }, {
                  default: withCtx(() => [
                    createVNode(_component_a_select, {
                      value: searchForm.accountType,
                      "onUpdate:value": _cache[1] || (_cache[1] = ($event) => searchForm.accountType = $event),
                      style: { "width": "100px" },
                      options: typeOptions.value
                    }, null, 8, ["value", "options"])
                  ]),
                  _: 1
                }),
                createVNode(_component_a_form_item, {
                  label: "\u4E1A\u52A1\u6765\u6E90",
                  name: "sourceType",
                  class: "item"
                }, {
                  default: withCtx(() => [
                    createVNode(_component_a_select, {
                      value: searchForm.sourceType,
                      "onUpdate:value": _cache[2] || (_cache[2] = ($event) => searchForm.sourceType = $event),
                      style: { "width": "150px" }
                    }, {
                      default: withCtx(() => [
                        createVNode(_component_a_select_option, { value: "" }, {
                          default: withCtx(() => [
                            createTextVNode("\u5168\u90E8")
                          ]),
                          _: 1
                        }),
                        (openBlock(true), createElementBlock(Fragment, null, renderList(props.dictionaryData, (opt) => {
                          return openBlock(), createBlock(_component_a_select_option, {
                            value: opt.value,
                            key: opt.id
                          }, {
                            default: withCtx(() => [
                              createTextVNode(toDisplayString(opt.label), 1)
                            ]),
                            _: 2
                          }, 1032, ["value"]);
                        }), 128))
                      ]),
                      _: 1
                    }, 8, ["value"])
                  ]),
                  _: 1
                }),
                createVNode(_component_a_form_item, {
                  label: "\u654F\u611F\u8BCD\u7EA7\u522B",
                  name: "level",
                  class: "item"
                }, {
                  default: withCtx(() => [
                    createVNode(_component_a_select, {
                      value: searchForm.level,
                      "onUpdate:value": _cache[3] || (_cache[3] = ($event) => searchForm.level = $event),
                      style: { "width": "100px" },
                      options: props.levelOptions
                    }, null, 8, ["value", "options"])
                  ]),
                  _: 1
                }),
                createVNode(_component_a_form_item, {
                  label: "\u7A3D\u67E5\u65F6\u95F4",
                  name: "createTime",
                  class: "item"
                }, {
                  default: withCtx(() => [
                    createVNode(_component_a_range_picker, {
                      value: searchForm.createTime,
                      "onUpdate:value": _cache[4] || (_cache[4] = ($event) => searchForm.createTime = $event),
                      style: { "width": "250px" }
                    }, null, 8, ["value"])
                  ]),
                  _: 1
                }),
                createVNode(_component_a_button, {
                  type: "primary",
                  class: "item",
                  onClick: search
                }, {
                  icon: withCtx(() => [
                    createVNode(unref(SearchOutlined$1))
                  ]),
                  default: withCtx(() => [
                    createTextVNode(" \u67E5\u8BE2 ")
                  ]),
                  _: 1
                }),
                createVNode(_component_a_button, {
                  type: "primary",
                  class: "item",
                  onClick: reset
                }, {
                  icon: withCtx(() => [
                    createVNode(unref(SyncOutlined$1))
                  ]),
                  default: withCtx(() => [
                    createTextVNode(" \u91CD\u7F6E ")
                  ]),
                  _: 1
                }),
                createVNode(_component_a_button, {
                  type: "primary",
                  class: "item",
                  onClick: _cache[5] || (_cache[5] = ($event) => del("", "batch"))
                }, {
                  default: withCtx(() => [
                    createTextVNode(" \u6279\u91CF\u5220\u9664\u5185\u5BB9 ")
                  ]),
                  _: 1
                })
              ]),
              _: 1
            }, 8, ["model"])
          ])
        ]),
        createElementVNode("div", _hoisted_4$3, [
          createVNode(_sfc_main$6, {
            columns,
            "data-source": sourceData.value,
            pagination: unref(pagination),
            operation: operations,
            loading: loading.value,
            "row-key": "id",
            "row-selection": {
              type: "checkbox",
              selectedRowKeys: dataState.selectedRowKeys,
              onChange: onSelectChange
            }
          }, {
            bodyCell: withCtx(({ column, record }) => [
              column.key === "operation" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
                createVNode(_component_a_button, {
                  type: "text",
                  size: "small",
                  onClick: ($event) => check(record)
                }, {
                  default: withCtx(() => [
                    createTextVNode(" \u67E5\u770B ")
                  ]),
                  _: 2
                }, 1032, ["onClick"]),
                record.contentStatus == 0 ? (openBlock(), createBlock(_component_a_button, {
                  key: 0,
                  type: "text",
                  size: "small",
                  onClick: ($event) => shield(record)
                }, {
                  default: withCtx(() => [
                    createTextVNode(" \u5C4F\u853D\u5185\u5BB9 ")
                  ]),
                  _: 2
                }, 1032, ["onClick"])) : createCommentVNode("", true),
                [0, 2].includes(record.contentStatus) ? (openBlock(), createBlock(_component_a_button, {
                  key: 1,
                  type: "text",
                  size: "small",
                  danger: "",
                  onClick: ($event) => del(record, "single")
                }, {
                  default: withCtx(() => [
                    createTextVNode(" \u5220\u9664\u5185\u5BB9 ")
                  ]),
                  _: 2
                }, 1032, ["onClick"])) : createCommentVNode("", true),
                record.contentStatus == 1 ? (openBlock(), createBlock(_component_a_button, {
                  key: 2,
                  type: "text",
                  size: "small",
                  danger: "",
                  onClick: ($event) => delRecord(record)
                }, {
                  default: withCtx(() => [
                    createTextVNode(" \u5220\u9664\u8BB0\u5F55 ")
                  ]),
                  _: 2
                }, 1032, ["onClick"])) : createCommentVNode("", true)
              ], 64)) : createCommentVNode("", true)
            ]),
            _: 1
          }, 8, ["data-source", "pagination", "loading", "row-selection"])
        ]),
        createVNode(_component_a_modal, {
          visible: modal.value.visible,
          "onUpdate:visible": _cache[6] || (_cache[6] = ($event) => modal.value.visible = $event),
          width: 850,
          footer: null,
          title: "\u5185\u5BB9\u8BE6\u60C5"
        }, {
          default: withCtx(() => [
            createVNode(_component_a_spin, { spinning: spinning.value }, {
              default: withCtx(() => [
                createElementVNode("p", null, "\u5185\u5BB9\u6807\u9898\uFF1A" + toDisplayString(modal.value.detail.contentTitle), 1),
                _hoisted_5$2,
                (openBlock(true), createElementBlock(Fragment, null, renderList(hitFieldList.value, (item, index2) => {
                  return openBlock(), createElementBlock("div", {
                    key: index2,
                    class: "modal-item"
                  }, [
                    createElementVNode("span", _hoisted_6$2, toDisplayString(item.field), 1),
                    _hoisted_7$1,
                    createElementVNode("span", {
                      class: "right",
                      innerHTML: item.hitContent
                    }, null, 8, _hoisted_8$1)
                  ]);
                }), 128))
              ]),
              _: 1
            }, 8, ["spinning"])
          ]),
          _: 1
        }, 8, ["visible"])
      ]);
    };
  }
});
var tabIndex = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-325d07e9"]]);
var index_vue_vue_type_style_index_0_scoped_true_lang$3 = "";
const _hoisted_1$3 = { class: "contentContain" };
const _hoisted_2$3 = { class: "tip" };
const _sfc_main$3 = /* @__PURE__ */ defineComponent({
  __name: "index",
  props: {
    sourceOptions: {
      type: Array,
      default: () => {
        return [];
      }
    }
  },
  setup(__props) {
    const props = __props;
    const activeKey = ref(-1);
    const levelOptions = ref([]);
    const loading = ref(false);
    const isCheck = ref(false);
    const arr = ref([
      { key: -1, name: "\u5168\u90E8", count: 0 },
      { key: 0, name: "\u5F85\u5904\u7406", count: 0 },
      { key: 1, name: "\u5DF2\u5904\u7406", count: 0 }
    ]);
    onMounted(() => {
      init();
    });
    const changeQuantity = (lst) => {
      arr.value.forEach((t, index2) => {
        t.count = lst[index2];
      });
    };
    const changeCheck = (e) => {
      isCheck.value = e;
    };
    const resetSens = () => {
      loading.value = true;
      sensitivityCheck().then(() => {
        isCheck.value = true;
        message.success("\u64CD\u4F5C\u6210\u529F\uFF01");
      }).finally(() => {
        loading.value = false;
      });
    };
    const init = () => {
      getLevelList().then((res) => {
        const levelList = res.data.filter((t) => {
          return t.levelName !== "\u7A7A";
        });
        const List = levelList.map((t) => {
          return {
            label: t.levelName,
            value: t.code
          };
        });
        const arr2 = [{ label: "\u5168\u90E8", value: "" }, ...List];
        levelOptions.value = arr2;
      });
    };
    return (_ctx, _cache) => {
      const _component_a_button = resolveComponent("a-button");
      const _component_a_alert = resolveComponent("a-alert");
      const _component_a_tab_pane = resolveComponent("a-tab-pane");
      const _component_a_tabs = resolveComponent("a-tabs");
      return openBlock(), createElementBlock("div", _hoisted_1$3, [
        createVNode(_component_a_alert, {
          message: "TIPS\uFF1A\u5F53\u524D\u547D\u4E2D\u5185\u5BB9\u4E3A\u5F53\u524D\u654F\u611F\u8BCD\u5E93\u4E0E\u7A3D\u67E5\u7B56\u7565\u7684\u6267\u884C\u7ED3\u679C\uFF0C \u82E5\u654F\u611F\u8BCD\u548C\u7A3D\u67E5\u7B56\u7565\u6709\u53D8\u66F4\uFF0C\u8BF7\u6267\u884C\u4E00\u6B21\u91CD\u65B0\u7A3D\u67E5\uFF0C\u5426\u5219\u5DF2\u7ECF\u88AB\u7A3D\u67E5\u7684\u6570\u636E\u82E5\u4E0D\u53D8\u66F4\u4E0D\u4F1A\u518D\u88AB\u7A3D\u67E5\uFF01",
          type: "warning",
          "show-icon": ""
        }, {
          description: withCtx(() => [
            withDirectives(createVNode(_component_a_button, {
              type: "link",
              loading: loading.value,
              onClick: resetSens
            }, {
              default: withCtx(() => [
                createTextVNode("\u6267\u884C\u91CD\u65B0\u7A3D\u67E5")
              ]),
              _: 1
            }, 8, ["loading"]), [
              [vShow, !isCheck.value]
            ])
          ]),
          _: 1
        }),
        withDirectives(createElementVNode("p", _hoisted_2$3, " \u5DF2\u542F\u52A8\u8001\u6570\u636E\u91CD\u65B0\u7A3D\u67E5\u4EFB\u52A1\uFF0C\u5C06\u5728\u591C\u95F401:00~03:00 \u6267\u884C\uFF0C\u8BF7\u660E\u65E5\u67E5\u770B\u7ED3\u679C ", 512), [
          [vShow, isCheck.value]
        ]),
        createVNode(_component_a_tabs, {
          activeKey: activeKey.value,
          "onUpdate:activeKey": _cache[0] || (_cache[0] = ($event) => activeKey.value = $event),
          "destroy-inactive-tab-pane": true
        }, {
          default: withCtx(() => [
            (openBlock(true), createElementBlock(Fragment, null, renderList(arr.value, (item) => {
              return openBlock(), createBlock(_component_a_tab_pane, {
                key: item.key,
                tab: `${item.key == 0 ? item.name + "(" + item.count + ")" : item.name}`
              }, {
                default: withCtx(() => [
                  createVNode(tabIndex, {
                    "active-key": activeKey.value,
                    onUpdateQuantity: changeQuantity,
                    onChangeCheck: changeCheck,
                    "level-options": levelOptions.value,
                    "dictionary-data": props.sourceOptions
                  }, null, 8, ["active-key", "level-options", "dictionary-data"])
                ]),
                _: 2
              }, 1032, ["tab"]);
            }), 128))
          ]),
          _: 1
        }, 8, ["activeKey"])
      ]);
    };
  }
});
var hitManagementComponent = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-51ce6aee"]]);
var index_vue_vue_type_style_index_0_scoped_true_lang$2 = "";
const _hoisted_1$2 = { class: "index" };
const _hoisted_2$2 = { class: "searchContain" };
const _hoisted_3$2 = { class: "search-form" };
const _hoisted_4$2 = { class: "contentContain" };
const _sfc_main$2 = /* @__PURE__ */ defineComponent({
  __name: "index",
  setup(__props) {
    const { pagination } = usePagination({
      onChange() {
        getList();
      }
    });
    const loading = ref(false);
    const operations = {
      hiddenView: true,
      hiddenEdit: true,
      hiddenDelete: true
    };
    const searchForm = reactive({
      labelName: "",
      createTime: []
    });
    const sourceData = ref([]);
    const columns = [
      { title: "\u521B\u5EFA\u65F6\u95F4", dataIndex: "createTime", key: "createTime" },
      { title: "\u6807\u7B7E\u540D\u79F0", dataIndex: "labelName", key: "labelName" },
      { title: "\u64CD\u4F5C", dataIndex: "operation", key: "operation" }
    ];
    const checkName = async (rule, value) => {
      if (!value) {
        return Promise.reject(new Error("\u8BF7\u8F93\u5165\u6807\u7B7E\u540D\u79F0\uFF01"));
      } else if (value.split(" ").join("").length < value.length) {
        return Promise.reject(new Error("\u6807\u7B7E\u540D\u79F0\u4E0D\u80FD\u6DFB\u52A0\u7A7A\u683C"));
      } else {
        const data = await labelVailName({
          id: form.value.id,
          labelName: value
        });
        if (data.code === "8200" && data.data) {
          return Promise.reject(new Error("\u8BE5\u6807\u7B7E\u5DF2\u5B58\u5728\uFF01"));
        }
      }
    };
    const formRef = ref(null);
    const modal = ref({
      isAdd: false,
      visible: false,
      loading: false
    });
    const title = ref("");
    const form = ref({
      labelName: "",
      id: ""
    });
    const search = () => {
      pagination.current = 1;
      getList();
    };
    const reset = () => {
      searchForm.labelName = "";
      searchForm.createTime = [];
      search();
    };
    const add = () => {
      form.value.labelName = "";
      form.value.id = "";
      modal.value.visible = true;
      title.value = "\u65B0\u589E\u6807\u7B7E";
    };
    const cancel = () => {
      formRef.value.resetFields();
      form.value.labelName = "";
      form.value.id = "";
      modal.value.visible = false;
    };
    const submit = () => {
      formRef.value.validate().then(() => {
        const request2 = title.value.indexOf("\u65B0\u589E") > -1 ? addLabel : updateLabel;
        modal.value.loading = true;
        request2({ ...form.value }).then(() => {
          message.success("\u64CD\u4F5C\u6210\u529F\uFF01");
          modal.value.loading = false;
          modal.value.visible = false;
          getList();
        }).catch(() => {
          modal.value.loading = false;
        });
      }).catch(() => {
      });
    };
    const edit = (item) => {
      modal.value.visible = true;
      title.value = "\u7F16\u8F91\u6807\u7B7E";
      form.value.labelName = item.labelName;
      form.value.id = item.id || "";
    };
    const del = (item) => {
      Modal.confirm({
        title: "\u786E\u5B9A\u5220\u9664\u5417\uFF1F",
        icon: createVNode(ExclamationCircleOutlined$1),
        content: "\u5220\u9664\u540E\uFF0C\u5217\u8868\u5C06\u4E0D\u518D\u663E\u793A\uFF0C\u82E5\u6807\u7B7E\u5DF2\u88AB\u4F7F\u7528\uFF0C\u8BF7\u5148\u627E\u5230\u4F7F\u7528\u7684\u654F\u611F\u8BCD\uFF0C\u5220\u9664\u8BE5\u6807\u7B7E\uFF01",
        okText: "\u7EE7\u7EED",
        cancelText: "\u53D6\u6D88",
        async onOk() {
          try {
            return await new Promise((resolve, reject) => {
              setTimeout(() => {
                delLabel({
                  id: item.id,
                  labelName: item.labelName
                }).then((res) => {
                  if (res.data) {
                    message.success("\u64CD\u4F5C\u6210\u529F\uFF01");
                    resolve();
                    getPage();
                    getList();
                  } else {
                    Modal.error({
                      title: "\u5220\u9664\u5931\u8D25",
                      content: "\u5B58\u5728\u5173\u8054\u4E2D\u7684\u5185\u5BB9\uFF0C\u65E0\u6CD5\u5220\u9664\uFF0C\u8BF7\u89E3\u9664\u5173\u8054\u540E\u518D\u5220\u9664\uFF01",
                      okText: "\u6211\u77E5\u9053\u4E86",
                      onOk() {
                        resolve();
                        console.log("ok");
                      }
                    });
                  }
                }).catch(() => {
                  reject();
                });
              }, 1e3);
            });
          } catch {
            return console.log("errors!");
          }
        },
        onCancel() {
          console.log("Cancel");
        }
      });
    };
    const getList = () => {
      loading.value = true;
      const { createTime, ...obj } = searchForm;
      getLabelData({
        ...obj,
        startTime: createTime.length > 0 ? moment(createTime[0]).format("YYYY-MM-DD") : "",
        endTime: createTime.length > 0 ? moment(createTime[1]).format("YYYY-MM-DD") : "",
        size: pagination.pageSize,
        current: pagination.current
      }).then((res) => {
        pagination.total = res.data.total;
        sourceData.value = res.data.records;
        loading.value = false;
      }).catch(() => {
        loading.value = false;
      });
    };
    const getPage = () => {
      if (pagination.current !== 1 && pagination.total - 1 === (pagination.current - 1) * pagination.pageSize) {
        pagination.current--;
      }
    };
    onMounted(() => {
      getList();
    });
    return (_ctx, _cache) => {
      const _component_a_input = resolveComponent("a-input");
      const _component_a_form_item = resolveComponent("a-form-item");
      const _component_a_range_picker = resolveComponent("a-range-picker");
      const _component_a_button = resolveComponent("a-button");
      const _component_a_form = resolveComponent("a-form");
      const _component_a_modal = resolveComponent("a-modal");
      return openBlock(), createElementBlock("div", _hoisted_1$2, [
        createElementVNode("div", _hoisted_2$2, [
          createElementVNode("div", _hoisted_3$2, [
            createVNode(_component_a_form, {
              model: searchForm,
              name: "searchForm",
              layout: "inline"
            }, {
              default: withCtx(() => [
                createVNode(_component_a_form_item, {
                  label: "\u6807\u7B7E\u540D\u79F0",
                  name: "labelName",
                  class: "item"
                }, {
                  default: withCtx(() => [
                    createVNode(_component_a_input, {
                      value: searchForm.labelName,
                      "onUpdate:value": _cache[0] || (_cache[0] = ($event) => searchForm.labelName = $event),
                      style: { "width": "150px" }
                    }, null, 8, ["value"])
                  ]),
                  _: 1
                }),
                createVNode(_component_a_form_item, {
                  label: "\u521B\u5EFA\u65F6\u95F4",
                  name: "createTime",
                  class: "item"
                }, {
                  default: withCtx(() => [
                    createVNode(_component_a_range_picker, {
                      value: searchForm.createTime,
                      "onUpdate:value": _cache[1] || (_cache[1] = ($event) => searchForm.createTime = $event),
                      style: { "width": "250px" }
                    }, null, 8, ["value"])
                  ]),
                  _: 1
                }),
                createVNode(_component_a_button, {
                  type: "primary",
                  class: "item",
                  onClick: search
                }, {
                  icon: withCtx(() => [
                    createVNode(unref(SearchOutlined$1))
                  ]),
                  default: withCtx(() => [
                    createTextVNode(" \u67E5\u8BE2 ")
                  ]),
                  _: 1
                }),
                createVNode(_component_a_button, {
                  type: "primary",
                  class: "item",
                  onClick: reset
                }, {
                  icon: withCtx(() => [
                    createVNode(unref(SyncOutlined$1))
                  ]),
                  default: withCtx(() => [
                    createTextVNode(" \u91CD\u7F6E ")
                  ]),
                  _: 1
                }),
                createVNode(_component_a_button, {
                  type: "primary",
                  class: "item",
                  onClick: add
                }, {
                  default: withCtx(() => [
                    createTextVNode(" \u65B0\u589E\u6807\u7B7E ")
                  ]),
                  _: 1
                })
              ]),
              _: 1
            }, 8, ["model"])
          ])
        ]),
        createElementVNode("div", _hoisted_4$2, [
          createVNode(_sfc_main$6, {
            columns,
            "data-source": sourceData.value,
            pagination: unref(pagination),
            operation: operations,
            loading: loading.value
          }, {
            bodyCell: withCtx(({ column, record }) => [
              column.key === "operation" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
                createVNode(_component_a_button, {
                  type: "text",
                  size: "small",
                  onClick: ($event) => edit(record)
                }, {
                  default: withCtx(() => [
                    createTextVNode(" \u7F16\u8F91 ")
                  ]),
                  _: 2
                }, 1032, ["onClick"]),
                createVNode(_component_a_button, {
                  type: "text",
                  size: "small",
                  danger: "",
                  onClick: ($event) => del(record)
                }, {
                  default: withCtx(() => [
                    createTextVNode(" \u5220\u9664 ")
                  ]),
                  _: 2
                }, 1032, ["onClick"])
              ], 64)) : createCommentVNode("", true)
            ]),
            _: 1
          }, 8, ["data-source", "pagination", "loading"])
        ]),
        createVNode(_component_a_modal, {
          visible: modal.value.visible,
          "onUpdate:visible": _cache[3] || (_cache[3] = ($event) => modal.value.visible = $event),
          title: title.value,
          "confirm-loading": modal.value.loading,
          "mask-closable": false,
          centered: "",
          onCancel: cancel,
          onOk: submit
        }, {
          default: withCtx(() => [
            createVNode(_component_a_form, {
              model: form.value,
              ref_key: "formRef",
              ref: formRef,
              name: "form",
              "label-col": { span: 6 },
              "wrapper-col": { span: 18 }
            }, {
              default: withCtx(() => [
                createVNode(_component_a_form_item, {
                  label: "\u6807\u7B7E\u540D\u79F0",
                  name: "labelName",
                  rules: [{ required: true, validator: checkName, trigger: "blur" }]
                }, {
                  default: withCtx(() => [
                    createVNode(_component_a_input, {
                      value: form.value.labelName,
                      "onUpdate:value": _cache[2] || (_cache[2] = ($event) => form.value.labelName = $event),
                      maxlength: "12",
                      placeholder: "\u965012\u5B57\u7B26"
                    }, null, 8, ["value"])
                  ]),
                  _: 1
                }, 8, ["rules"])
              ]),
              _: 1
            }, 8, ["model"])
          ]),
          _: 1
        }, 8, ["visible", "title", "confirm-loading"])
      ]);
    };
  }
});
var lexiconTagComponent = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-c687ac52"]]);
var index_vue_vue_type_style_index_0_scoped_true_lang$1 = "";
const _hoisted_1$1 = { class: "index" };
const _hoisted_2$1 = { class: "searchContain" };
const _hoisted_3$1 = { class: "search-form" };
const _hoisted_4$1 = { class: "contentContain" };
const _hoisted_5$1 = { class: "content" };
const _hoisted_6$1 = { class: "content" };
const _sfc_main$1 = /* @__PURE__ */ defineComponent({
  __name: "index",
  props: {
    sourceOptions: {
      type: Array,
      default: () => {
        return [];
      }
    }
  },
  setup(__props) {
    const props = __props;
    const { pagination } = usePagination({
      onChange() {
        getList();
      }
    });
    const loading = ref(false);
    const operations = {
      hiddenView: true,
      hiddenEdit: true,
      hiddenDelete: true
    };
    const searchForm = reactive({
      sourceType: "",
      tableName: "",
      fieldName: ""
    });
    const sourceData = ref([]);
    const columns = [
      { title: "\u7A3D\u67E5\u8868\u540D\u79F0", dataIndex: "tableName", key: "tableName" },
      { title: "\u7A3D\u67E5\u8868\u540D", dataIndex: "tables", key: "tables" },
      { title: "\u7A3D\u67E5\u5B57\u6BB5\u540D", dataIndex: "fieldName", key: "fieldName" },
      {
        title: "\u5185\u5BB9\u6807\u9898\u5B57\u6BB5\u540D",
        dataIndex: "contentFieldName",
        key: "contentFieldName"
      },
      { title: "\u4E1A\u52A1\u6765\u6E90", dataIndex: "sourceName", key: "sourceName", width: 110 },
      { title: "\u5220\u9664\u7B56\u7565\u63A5\u53E3", dataIndex: "url", key: "url" },
      { title: "\u64CD\u4F5C", dataIndex: "operation", key: "operation", width: 140 }
    ];
    const checkTableName = async (rule, value) => {
      if (!value) {
        return Promise.reject(new Error("\u8BF7\u8F93\u5165\u7A3D\u67E5\u8868\u540D\u79F0\uFF01"));
      } else if (value.split(" ").join("").length < value.length) {
        return Promise.reject(new Error("\u7A3D\u67E5\u8868\u540D\u79F0\u4E0D\u80FD\u6DFB\u52A0\u7A7A\u683C"));
      } else {
        const data = await checkRepetition({
          id: form.value.id,
          tableName: value
        });
        if (data.code === "8200" && !data.data) {
          return Promise.reject(new Error("\u8BE5\u8868\u540D\u79F0\u5DF2\u5B58\u5728\uFF01"));
        }
      }
    };
    const checkTables = async (rule, value) => {
      if (!value) {
        return Promise.reject(new Error("\u8BF7\u8F93\u5165\u7A3D\u67E5\u8868\u540D\uFF01"));
      } else if (value.split(" ").join("").length < value.length) {
        return Promise.reject(new Error("\u7A3D\u67E5\u8868\u540D\u4E0D\u80FD\u6DFB\u52A0\u7A7A\u683C"));
      } else {
        const data = await checkRepetition({
          id: form.value.id,
          tables: value
        });
        if (data.code === "8200" && !data.data) {
          return Promise.reject(new Error("\u8BE5\u8868\u540D\u79F0\u5DF2\u5B58\u5728\uFF01"));
        }
      }
    };
    const formRef = ref(false);
    const modal = ref({
      isAdd: false,
      visible: false,
      loading: false
    });
    const title = ref("");
    const formItemLayout = {
      labelCol: {
        xs: { span: 18 },
        sm: { span: 6 }
      },
      wrapperCol: {
        xs: { span: 18 },
        sm: { span: 18 }
      }
    };
    const formItemLayoutWithOutLabel = {
      wrapperCol: {
        xs: { span: 24, offset: 0 },
        sm: { span: 18, offset: 6 }
      }
    };
    const form = ref({
      tableName: "",
      tables: "",
      fields: [{ value: "", key: Date.now() }],
      contentFieldName: "",
      sourceType: "",
      id: "",
      url: ""
    });
    const search = () => {
      pagination.current = 1;
      getList();
    };
    const reset = () => {
      searchForm.sourceType = "";
      searchForm.tableName = "";
      searchForm.fieldName = "";
      search();
    };
    const add = () => {
      form.value.tableName = "";
      form.value.id = "";
      modal.value.visible = true;
      title.value = "\u65B0\u589E\u7A3D\u67E5\u8868";
    };
    const cancel = () => {
      formRef.value.resetFields();
      form.value.tableName = "";
      form.value.fields = [{ value: "", key: Date.now() }];
      form.value.id = "";
      modal.value.visible = false;
    };
    const submit = () => {
      formRef.value.validate().then(() => {
        const request2 = title.value.indexOf("\u65B0\u589E") > -1 ? addInspect : updateInspect;
        modal.value.loading = true;
        const { fields, ...submitObj } = form.value;
        const submitFields = fields.map((t) => {
          return t.value;
        });
        const sourceName = ref("");
        props.sourceOptions.map((t) => {
          if (t.value === form.value.sourceType) {
            sourceName.value = t.label;
          }
        });
        request2({
          ...submitObj,
          fields: submitFields,
          sourceName: sourceName.value
        }).then(() => {
          message.success("\u64CD\u4F5C\u6210\u529F\uFF01");
          modal.value.loading = false;
          modal.value.visible = false;
          cancel();
          getList();
        }).catch(() => {
          modal.value.loading = false;
        });
      }).catch(() => {
      });
    };
    const edit = (item) => {
      modal.value.visible = true;
      title.value = "\u7F16\u8F91\u7A3D\u67E5\u8868";
      getInspectDetail({ id: item.id }).then((res) => {
        form.value = res.data;
        form.value.fields = res.data.fields.map((t) => {
          return {
            value: t,
            key: new Date()
          };
        });
      });
    };
    const del = (item) => {
      Modal.confirm({
        title: "\u786E\u5B9A\u5220\u9664\u5417\uFF1F",
        icon: createVNode(ExclamationCircleOutlined$1),
        content: "\u5220\u9664\u540E\uFF0C\u5C06\u4E0D\u518D\u5BF9\u8BE5\u8868\u8FDB\u884C\u7A3D\u67E5\uFF01",
        okText: "\u7EE7\u7EED",
        cancelText: "\u53D6\u6D88",
        async onOk() {
          try {
            return await new Promise((resolve, reject) => {
              setTimeout(() => {
                delInspect({
                  id: item.id
                }).then((res) => {
                  if (res.data) {
                    message.success("\u64CD\u4F5C\u6210\u529F\uFF01");
                    resolve();
                    getPage();
                    getList();
                  }
                }).catch(() => {
                  reject();
                });
              }, 1e3);
            });
          } catch {
            return console.log("errors!");
          }
        },
        onCancel() {
          console.log("Cancel");
        }
      });
    };
    const getList = () => {
      loading.value = true;
      const { ...obj } = searchForm;
      getInspectData({
        ...obj,
        size: pagination.pageSize,
        current: pagination.current
      }).then((res) => {
        pagination.total = res.total;
        sourceData.value = res.data;
        loading.value = false;
      }).catch(() => {
        loading.value = false;
      });
    };
    const getPage = () => {
      if (pagination.current !== 1 && pagination.total - 1 === (pagination.current - 1) * pagination.pageSize) {
        pagination.current--;
      }
    };
    const addFieldName = () => {
      form.value.fields.push({ value: "", key: Date.now() });
    };
    const removeFieldName = (item) => {
      if (form.value.fields.length > 1) {
        const index2 = form.value.fields.indexOf(item);
        if (index2 !== -1) {
          form.value.fields.splice(index2, 1);
        }
      } else {
        message.error("\u6700\u5C11\u4FDD\u7559\u4E00\u4E2A\u7A3D\u67E5\u5B57\u6BB5\u540D");
      }
    };
    onMounted(() => {
      getList();
    });
    return (_ctx, _cache) => {
      const _component_a_select_option = resolveComponent("a-select-option");
      const _component_a_select = resolveComponent("a-select");
      const _component_a_form_item = resolveComponent("a-form-item");
      const _component_a_input = resolveComponent("a-input");
      const _component_SearchOutlined = resolveComponent("SearchOutlined");
      const _component_a_button = resolveComponent("a-button");
      const _component_SyncOutlined = resolveComponent("SyncOutlined");
      const _component_a_form = resolveComponent("a-form");
      const _component_a_tooltip = resolveComponent("a-tooltip");
      const _component_a_modal = resolveComponent("a-modal");
      return openBlock(), createElementBlock("div", _hoisted_1$1, [
        createElementVNode("div", _hoisted_2$1, [
          createElementVNode("div", _hoisted_3$1, [
            createVNode(_component_a_form, {
              model: searchForm,
              name: "searchForm",
              layout: "inline"
            }, {
              default: withCtx(() => [
                createVNode(_component_a_form_item, {
                  label: "\u4E1A\u52A1\u6765\u6E90",
                  name: "sourceType",
                  class: "item"
                }, {
                  default: withCtx(() => [
                    createVNode(_component_a_select, {
                      value: searchForm.sourceType,
                      "onUpdate:value": _cache[0] || (_cache[0] = ($event) => searchForm.sourceType = $event),
                      style: { "width": "150px" }
                    }, {
                      default: withCtx(() => [
                        createVNode(_component_a_select_option, { value: "" }, {
                          default: withCtx(() => [
                            createTextVNode("\u5168\u90E8")
                          ]),
                          _: 1
                        }),
                        (openBlock(true), createElementBlock(Fragment, null, renderList(props.sourceOptions, (item) => {
                          return openBlock(), createBlock(_component_a_select_option, {
                            key: item.id,
                            value: item.value
                          }, {
                            default: withCtx(() => [
                              createTextVNode(toDisplayString(item.label), 1)
                            ]),
                            _: 2
                          }, 1032, ["value"]);
                        }), 128))
                      ]),
                      _: 1
                    }, 8, ["value"])
                  ]),
                  _: 1
                }),
                createVNode(_component_a_form_item, {
                  label: "\u7A3D\u67E5\u8868\u540D\u79F0",
                  name: "tableName",
                  class: "item"
                }, {
                  default: withCtx(() => [
                    createVNode(_component_a_input, {
                      value: searchForm.tableName,
                      "onUpdate:value": _cache[1] || (_cache[1] = ($event) => searchForm.tableName = $event),
                      style: { "width": "150px" }
                    }, null, 8, ["value"])
                  ]),
                  _: 1
                }),
                createVNode(_component_a_form_item, {
                  label: "\u7A3D\u67E5\u5B57\u6BB5\u540D",
                  name: "fieldName",
                  class: "item"
                }, {
                  default: withCtx(() => [
                    createVNode(_component_a_input, {
                      value: searchForm.fieldName,
                      "onUpdate:value": _cache[2] || (_cache[2] = ($event) => searchForm.fieldName = $event),
                      style: { "width": "150px" }
                    }, null, 8, ["value"])
                  ]),
                  _: 1
                }),
                createVNode(_component_a_button, {
                  type: "primary",
                  class: "item",
                  onClick: search
                }, {
                  icon: withCtx(() => [
                    createVNode(_component_SearchOutlined)
                  ]),
                  default: withCtx(() => [
                    createTextVNode(" \u67E5\u8BE2 ")
                  ]),
                  _: 1
                }),
                createVNode(_component_a_button, {
                  type: "primary",
                  class: "item",
                  onClick: reset
                }, {
                  icon: withCtx(() => [
                    createVNode(_component_SyncOutlined)
                  ]),
                  default: withCtx(() => [
                    createTextVNode(" \u91CD\u7F6E ")
                  ]),
                  _: 1
                }),
                createVNode(_component_a_button, {
                  type: "primary",
                  class: "item",
                  onClick: add
                }, {
                  default: withCtx(() => [
                    createTextVNode(" \u65B0\u589E ")
                  ]),
                  _: 1
                })
              ]),
              _: 1
            }, 8, ["model"])
          ])
        ]),
        createElementVNode("div", _hoisted_4$1, [
          createVNode(_sfc_main$6, {
            columns,
            "data-source": sourceData.value,
            pagination: unref(pagination),
            operation: operations,
            loading: loading.value
          }, {
            bodyCell: withCtx(({ column, record }) => [
              column.key === "fieldName" ? (openBlock(), createBlock(_component_a_tooltip, { key: 0 }, {
                title: withCtx(() => [
                  createTextVNode(toDisplayString(record.fieldName), 1)
                ]),
                default: withCtx(() => [
                  createElementVNode("div", _hoisted_5$1, toDisplayString(record.fieldName), 1)
                ]),
                _: 2
              }, 1024)) : createCommentVNode("", true),
              column.key === "url" ? (openBlock(), createBlock(_component_a_tooltip, { key: 1 }, {
                title: withCtx(() => [
                  createTextVNode(toDisplayString(record.url), 1)
                ]),
                default: withCtx(() => [
                  createElementVNode("div", _hoisted_6$1, toDisplayString(record.url), 1)
                ]),
                _: 2
              }, 1024)) : createCommentVNode("", true),
              column.key === "operation" ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
                createVNode(_component_a_button, {
                  type: "text",
                  size: "small",
                  onClick: ($event) => edit(record)
                }, {
                  default: withCtx(() => [
                    createTextVNode(" \u7F16\u8F91 ")
                  ]),
                  _: 2
                }, 1032, ["onClick"]),
                createVNode(_component_a_button, {
                  type: "text",
                  size: "small",
                  danger: "",
                  onClick: ($event) => del(record)
                }, {
                  default: withCtx(() => [
                    createTextVNode(" \u5220\u9664 ")
                  ]),
                  _: 2
                }, 1032, ["onClick"])
              ], 64)) : createCommentVNode("", true)
            ]),
            _: 1
          }, 8, ["data-source", "pagination", "loading"])
        ]),
        createVNode(_component_a_modal, {
          visible: modal.value.visible,
          "onUpdate:visible": _cache[8] || (_cache[8] = ($event) => modal.value.visible = $event),
          title: title.value,
          "confirm-loading": modal.value.loading,
          "mask-closable": false,
          centered: "",
          onCancel: cancel,
          onOk: submit
        }, {
          default: withCtx(() => [
            createVNode(_component_a_form, {
              model: form.value,
              ref_key: "formRef",
              ref: formRef,
              name: "form",
              "label-col": { span: 6 },
              "wrapper-col": { span: 18 }
            }, {
              default: withCtx(() => [
                createVNode(_component_a_form_item, {
                  label: "\u7A3D\u67E5\u8868\u540D\u79F0",
                  name: "tableName",
                  rules: [
                    { required: true, validator: checkTableName, trigger: "blur" }
                  ]
                }, {
                  default: withCtx(() => [
                    createVNode(_component_a_input, {
                      value: form.value.tableName,
                      "onUpdate:value": _cache[3] || (_cache[3] = ($event) => form.value.tableName = $event),
                      maxlength: "12",
                      placeholder: "\u965012\u5B57\u7B26"
                    }, null, 8, ["value"])
                  ]),
                  _: 1
                }, 8, ["rules"]),
                createVNode(_component_a_form_item, {
                  label: "\u7A3D\u67E5\u8868\u540D",
                  name: "tables",
                  rules: [{ required: true, validator: checkTables, trigger: "blur" }]
                }, {
                  default: withCtx(() => [
                    createVNode(_component_a_input, {
                      value: form.value.tables,
                      "onUpdate:value": _cache[4] || (_cache[4] = ($event) => form.value.tables = $event),
                      maxlength: "50",
                      placeholder: "\u8BF7\u8F93\u5165\u5F00\u53D1\u521B\u5EFA\u7684\u8868\u540D\uFF0C\u965050\u5B57\u7B26"
                    }, null, 8, ["value"])
                  ]),
                  _: 1
                }, 8, ["rules"]),
                (openBlock(true), createElementBlock(Fragment, null, renderList(form.value.fields, (item, index2) => {
                  return openBlock(), createBlock(_component_a_form_item, mergeProps({ key: index2 }, index2 === 0 ? formItemLayout : formItemLayoutWithOutLabel, {
                    label: index2 === 0 ? "\u7A3D\u67E5\u5B57\u6BB5\u540D\uFF1A" : "",
                    name: ["fields", index2, "value"],
                    rules: [
                      { required: true, message: "\u8BF7\u8F93\u5165\u7A3D\u67E5\u5B57\u6BB5\u540D", trigger: "change" }
                    ]
                  }), {
                    default: withCtx(() => [
                      createVNode(_component_a_input, {
                        value: item.value,
                        "onUpdate:value": ($event) => item.value = $event,
                        maxlength: "50",
                        placeholder: "\u8BF7\u8F93\u5165\u5F00\u53D1\u521B\u5EFA\u7684\u5B57\u6BB5\u540D\uFF0C\u965050\u5B57\u7B26",
                        style: { "width": "80%", "margin-right": "8px" }
                      }, null, 8, ["value", "onUpdate:value"]),
                      createVNode(_component_a_button, {
                        type: "text",
                        onClick: ($event) => removeFieldName(item)
                      }, {
                        default: withCtx(() => [
                          createTextVNode("\u5220\u9664")
                        ]),
                        _: 2
                      }, 1032, ["onClick"])
                    ]),
                    _: 2
                  }, 1040, ["label", "name"]);
                }), 128)),
                createVNode(_component_a_form_item, normalizeProps(guardReactiveProps(formItemLayoutWithOutLabel)), {
                  default: withCtx(() => [
                    createVNode(_component_a_button, {
                      type: "primary",
                      onClick: addFieldName,
                      style: { "margin-top": "6px" }
                    }, {
                      default: withCtx(() => [
                        createTextVNode(" \u518D\u6DFB\u52A0\u4E00\u4E2A ")
                      ]),
                      _: 1
                    })
                  ]),
                  _: 1
                }, 16),
                createVNode(_component_a_form_item, {
                  label: "\u5185\u5BB9\u6807\u9898\u5B57\u6BB5\u540D",
                  name: "contentFieldName",
                  rules: [
                    {
                      required: true,
                      message: "\u8BF7\u8F93\u5165\u5185\u5BB9\u6807\u9898\u5B57\u6BB5\u540D",
                      trigger: "blur"
                    }
                  ]
                }, {
                  default: withCtx(() => [
                    createVNode(_component_a_input, {
                      value: form.value.contentFieldName,
                      "onUpdate:value": _cache[5] || (_cache[5] = ($event) => form.value.contentFieldName = $event),
                      maxlength: "50",
                      placeholder: "\u8BF7\u8F93\u5165\u5F00\u53D1\u521B\u5EFA\u7684\u5B57\u6BB5\u540D\uFF0C\u965050\u5B57\u7B26"
                    }, null, 8, ["value"])
                  ]),
                  _: 1
                }),
                createVNode(_component_a_form_item, {
                  label: "\u4E1A\u52A1\u6765\u6E90",
                  name: "sourceType",
                  class: "item",
                  rules: [
                    { required: true, message: "\u8BF7\u9009\u62E9\u4E1A\u52A1\u6765\u6E90", trigger: "change" }
                  ]
                }, {
                  default: withCtx(() => [
                    createVNode(_component_a_select, {
                      value: form.value.sourceType,
                      "onUpdate:value": _cache[6] || (_cache[6] = ($event) => form.value.sourceType = $event),
                      style: { "width": "150px" }
                    }, {
                      default: withCtx(() => [
                        createVNode(_component_a_select_option, { value: "" }, {
                          default: withCtx(() => [
                            createTextVNode("\u8BF7\u9009\u62E9\u4E1A\u52A1\u6765\u6E90")
                          ]),
                          _: 1
                        }),
                        (openBlock(true), createElementBlock(Fragment, null, renderList(props.sourceOptions, (item) => {
                          return openBlock(), createBlock(_component_a_select_option, {
                            key: item.id,
                            value: item.value
                          }, {
                            default: withCtx(() => [
                              createTextVNode(toDisplayString(item.label), 1)
                            ]),
                            _: 2
                          }, 1032, ["value"]);
                        }), 128))
                      ]),
                      _: 1
                    }, 8, ["value"])
                  ]),
                  _: 1
                }),
                createVNode(_component_a_form_item, {
                  label: "\u5220\u9664\u7B56\u7565\u63A5\u53E3",
                  name: "url"
                }, {
                  default: withCtx(() => [
                    createVNode(_component_a_input, {
                      value: form.value.url,
                      "onUpdate:value": _cache[7] || (_cache[7] = ($event) => form.value.url = $event),
                      maxlength: 200,
                      placeholder: "\u8F93\u5165\u5220\u9664\u7B56\u7565\u7684\u5904\u7406\u63A5\u53E3"
                    }, null, 8, ["value"])
                  ]),
                  _: 1
                })
              ]),
              _: 1
            }, 8, ["model"])
          ]),
          _: 1
        }, 8, ["visible", "title", "confirm-loading"])
      ]);
    };
  }
});
var inspectManagementComponent = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-3746a970"]]);
var index_vue_vue_type_style_index_0_scoped_true_lang = "";
const _withScopeId = (n) => (pushScopeId("data-v-a793a60a"), n = n(), popScopeId(), n);
const _hoisted_1 = { class: "contentContain" };
const _hoisted_2 = { class: "head" };
const _hoisted_3 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("p", { class: "title" }, "\u7B56\u7565\u914D\u7F6E", -1));
const _hoisted_4 = { class: "card" };
const _hoisted_5 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("p", { class: "title" }, "\u7EA2\u7EBF\u8BCD", -1));
const _hoisted_6 = { class: "item" };
const _hoisted_7 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("br", null, null, -1));
const _hoisted_8 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("br", null, null, -1));
const _hoisted_9 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("br", null, null, -1));
const _hoisted_10 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("br", null, null, -1));
const _hoisted_11 = { key: 1 };
const _hoisted_12 = { key: 0 };
const _hoisted_13 = { class: "card" };
const _hoisted_14 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("p", { class: "title" }, "\u5371\u9669\u8BCD", -1));
const _hoisted_15 = { class: "item" };
const _hoisted_16 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("br", null, null, -1));
const _hoisted_17 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("br", null, null, -1));
const _hoisted_18 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("br", null, null, -1));
const _hoisted_19 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("br", null, null, -1));
const _hoisted_20 = { key: 1 };
const _hoisted_21 = { key: 0 };
const _hoisted_22 = { class: "card" };
const _hoisted_23 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("p", { class: "title" }, "\u654F\u611F\u8BCD", -1));
const _hoisted_24 = { class: "item" };
const _hoisted_25 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("br", null, null, -1));
const _hoisted_26 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("br", null, null, -1));
const _hoisted_27 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("br", null, null, -1));
const _hoisted_28 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("br", null, null, -1));
const _hoisted_29 = { key: 1 };
const _hoisted_30 = { key: 0 };
const _sfc_main = /* @__PURE__ */ defineComponent({
  __name: "index",
  props: {
    sourceOptions: {
      type: Array,
      default: () => {
        return [];
      }
    },
    isFinished: {
      type: Boolean,
      default: false
    }
  },
  setup(__props) {
    const props = __props;
    const isEdit = ref(false);
    const loading = ref(false);
    const form = ref({
      red: {
        code: "0",
        status: "1",
        checkType: 1,
        checkTime: null,
        days: null,
        disposeType: 2,
        sources: []
      },
      danger: {
        code: "1",
        status: "1",
        checkType: 1,
        checkTime: null,
        days: null,
        disposeType: 1,
        sources: []
      },
      sensitive: {
        code: "2",
        status: "1",
        checkType: null,
        checkTime: null,
        days: null,
        disposeType: null,
        sources: []
      }
    });
    watch(
      () => props,
      (newValue, oldValue) => {
        if (props.isFinished) {
          getSource();
        }
      },
      { immediate: true, deep: true }
    );
    const openEdit = () => {
      isEdit.value = true;
    };
    const back = () => {
      isEdit.value = false;
      getSource();
    };
    const submit = () => {
      if (form.value.red.checkType === 2 && form.value.red.checkTime === null) {
        message.error("\u8BF7\u9009\u62E9\u7EA2\u7EBF\u8BCD\u5DE1\u68C0\u65F6\u95F4");
        return;
      }
      if (form.value.red.checkType === 3 && (form.value.red.days === null || form.value.red.checkTime === null)) {
        message.error("\u8BF7\u9009\u62E9\u7EA2\u7EBF\u8BCD\u5DE1\u68C0\u5929\u6570\u4E0E\u65F6\u95F4");
        return;
      }
      if (form.value.danger.checkType === 2 && form.value.danger.checkTime === null) {
        message.error("\u8BF7\u9009\u62E9\u5371\u9669\u8BCD\u5DE1\u68C0\u65F6\u95F4");
        return;
      }
      if (form.value.danger.checkType === 3 && (form.value.danger.days === null || form.value.danger.checkTime === null)) {
        message.error("\u8BF7\u9009\u62E9\u5371\u9669\u8BCD\u5DE1\u68C0\u5929\u6570\u4E0E\u65F6\u95F4");
        return;
      }
      if (form.value.sensitive.checkType === 2 && form.value.sensitive.checkTime === null) {
        message.error("\u8BF7\u9009\u62E9\u654F\u611F\u8BCD\u5DE1\u68C0\u65F6\u95F4");
        return;
      }
      if (form.value.sensitive.checkType === 3 && (form.value.sensitive.days === null || form.value.sensitive.checkTime === null)) {
        message.error("\u8BF7\u9009\u62E9\u654F\u611F\u8BCD\u5DE1\u68C0\u5929\u6570\u4E0E\u65F6\u95F4");
        return;
      }
      loading.value = true;
      const submitArr = Object.values(form.value).map((t) => {
        return {
          ...t,
          sources: t.sources.map((item) => {
            return {
              sourceType: item
            };
          })
        };
      });
      saveStrategy({ list: submitArr }).then(() => {
        loading.value = false;
        isEdit.value = false;
        message.success("\u64CD\u4F5C\u6210\u529F\uFF01");
        getSource();
      }).catch(() => {
        loading.value = false;
      });
    };
    const redSource = ref([]);
    const dangerSource = ref([]);
    const sensitiveSource = ref([]);
    const getSource = () => {
      getStrategy().then((res) => {
        const obj = {
          0: "red",
          1: "danger",
          2: "sensitive"
        };
        res.data.map((t) => {
          const { sources, ...item } = t;
          const arr = sources.map((t2) => {
            return t2.sourceType;
          });
          form.value[obj[t.code]] = { ...item, sources: arr };
        });
        redSource.value = getSourceList(form.value.red.sources);
        dangerSource.value = getSourceList(form.value.danger.sources);
        sensitiveSource.value = getSourceList(form.value.sensitive.sources);
      });
    };
    const getSourceList = (list) => {
      const sourceArr = [];
      if (props.sourceOptions.length > 0 && list.length > 0) {
        props.sourceOptions.map((t) => {
          list.map((tt) => {
            if (tt === t.value) {
              sourceArr.push(t.label);
            }
          });
        });
        return sourceArr;
      }
    };
    return (_ctx, _cache) => {
      const _component_a_button = resolveComponent("a-button");
      const _component_a_radio = resolveComponent("a-radio");
      const _component_a_radio_group = resolveComponent("a-radio-group");
      const _component_a_form_item = resolveComponent("a-form-item");
      const _component_a_time_picker = resolveComponent("a-time-picker");
      const _component_a_input_number = resolveComponent("a-input-number");
      const _component_a_checkbox_group = resolveComponent("a-checkbox-group");
      const _component_a_form = resolveComponent("a-form");
      return openBlock(), createElementBlock("div", _hoisted_1, [
        createElementVNode("div", _hoisted_2, [
          _hoisted_3,
          !isEdit.value ? (openBlock(), createBlock(_component_a_button, {
            key: 0,
            onClick: openEdit,
            type: "primary",
            style: { "width": "100px" }
          }, {
            default: withCtx(() => [
              createTextVNode(" \u7F16\u8F91 ")
            ]),
            _: 1
          })) : createCommentVNode("", true)
        ]),
        createVNode(_component_a_form, {
          model: form.value,
          name: "form"
        }, {
          default: withCtx(() => [
            createElementVNode("div", _hoisted_4, [
              _hoisted_5,
              createElementVNode("div", _hoisted_6, [
                createVNode(_component_a_form_item, { label: "\u529F\u80FD\u542F\u7528" }, {
                  default: withCtx(() => [
                    createVNode(_component_a_radio_group, {
                      value: form.value.red.status,
                      "onUpdate:value": _cache[0] || (_cache[0] = ($event) => form.value.red.status = $event),
                      disabled: !isEdit.value
                    }, {
                      default: withCtx(() => [
                        createVNode(_component_a_radio, { value: "1" }, {
                          default: withCtx(() => [
                            createTextVNode("\u542F\u7528")
                          ]),
                          _: 1
                        }),
                        createVNode(_component_a_radio, { value: "0" }, {
                          default: withCtx(() => [
                            createTextVNode("\u7981\u7528")
                          ]),
                          _: 1
                        })
                      ]),
                      _: 1
                    }, 8, ["value", "disabled"])
                  ]),
                  _: 1
                }),
                createVNode(_component_a_form_item, { label: "\u5DE1\u68C0\u65F6\u95F4" }, {
                  default: withCtx(() => [
                    createVNode(_component_a_radio_group, {
                      value: form.value.red.checkType,
                      "onUpdate:value": _cache[4] || (_cache[4] = ($event) => form.value.red.checkType = $event),
                      class: "radio-list",
                      disabled: !isEdit.value
                    }, {
                      default: withCtx(() => [
                        createVNode(_component_a_radio, { value: 1 }, {
                          default: withCtx(() => [
                            createTextVNode("\u7CFB\u7EDF\u9ED8\u8BA4")
                          ]),
                          _: 1
                        }),
                        _hoisted_7,
                        createVNode(_component_a_radio, {
                          value: 2,
                          class: "radio-item"
                        }, {
                          default: withCtx(() => [
                            createTextVNode(" \u6BCF\u5929\u5B9A\u65F6"),
                            createVNode(_component_a_time_picker, {
                              value: form.value.red.checkTime,
                              "onUpdate:value": _cache[1] || (_cache[1] = ($event) => form.value.red.checkTime = $event),
                              "value-format": "HH:mm:ss",
                              disabled: !isEdit.value
                            }, null, 8, ["value", "disabled"])
                          ]),
                          _: 1
                        }),
                        _hoisted_8,
                        createVNode(_component_a_radio, { value: 3 }, {
                          default: withCtx(() => [
                            createTextVNode(" \u6BCF\u9694"),
                            createVNode(_component_a_input_number, {
                              value: form.value.red.days,
                              "onUpdate:value": _cache[2] || (_cache[2] = ($event) => form.value.red.days = $event),
                              precision: 0,
                              min: 0,
                              max: 999,
                              disabled: !isEdit.value
                            }, null, 8, ["value", "disabled"]),
                            createTextVNode(" \u5929\u5B9A\u65F6\uFF1A"),
                            createVNode(_component_a_time_picker, {
                              value: form.value.red.checkTime,
                              "onUpdate:value": _cache[3] || (_cache[3] = ($event) => form.value.red.checkTime = $event),
                              "value-format": "HH:mm:ss",
                              disabled: !isEdit.value
                            }, null, 8, ["value", "disabled"])
                          ]),
                          _: 1
                        })
                      ]),
                      _: 1
                    }, 8, ["value", "disabled"])
                  ]),
                  _: 1
                }),
                createVNode(_component_a_form_item, { label: "\u7A3D\u67E5\u5904\u7406" }, {
                  default: withCtx(() => [
                    createVNode(_component_a_radio_group, {
                      value: form.value.red.disposeType,
                      "onUpdate:value": _cache[5] || (_cache[5] = ($event) => form.value.red.disposeType = $event),
                      class: "radio-list",
                      disabled: !isEdit.value
                    }, {
                      default: withCtx(() => [
                        createVNode(_component_a_radio, { value: 1 }, {
                          default: withCtx(() => [
                            createTextVNode("\u4E0D\u5904\u7406\uFF0C\u4EC5\u8BB0\u5F55")
                          ]),
                          _: 1
                        }),
                        _hoisted_9,
                        createVNode(_component_a_radio, {
                          value: 2,
                          class: "radio-item"
                        }, {
                          default: withCtx(() => [
                            createTextVNode("\u7CFB\u7EDF\u81EA\u52A8\u5C4F\u853D\u5185\u5BB9")
                          ]),
                          _: 1
                        }),
                        _hoisted_10,
                        createVNode(_component_a_radio, { value: 3 }, {
                          default: withCtx(() => [
                            createTextVNode("\u7CFB\u7EDF\u81EA\u52A8\u5220\u9664\u5185\u5BB9")
                          ]),
                          _: 1
                        })
                      ]),
                      _: 1
                    }, 8, ["value", "disabled"])
                  ]),
                  _: 1
                }),
                createVNode(_component_a_form_item, { label: "\u4E1A\u52A1\u6765\u6E90" }, {
                  default: withCtx(() => [
                    isEdit.value ? (openBlock(), createBlock(_component_a_checkbox_group, {
                      key: 0,
                      value: form.value.red.sources,
                      "onUpdate:value": _cache[6] || (_cache[6] = ($event) => form.value.red.sources = $event),
                      options: props.sourceOptions
                    }, null, 8, ["value", "options"])) : (openBlock(), createElementBlock("div", _hoisted_11, [
                      (openBlock(true), createElementBlock(Fragment, null, renderList(redSource.value, (item, index2) => {
                        return openBlock(), createElementBlock("span", { key: index2 }, [
                          createTextVNode(toDisplayString(item), 1),
                          redSource.value.length - 1 !== index2 ? (openBlock(), createElementBlock("span", _hoisted_12, "\uFF1B")) : createCommentVNode("", true)
                        ]);
                      }), 128))
                    ]))
                  ]),
                  _: 1
                })
              ])
            ]),
            createElementVNode("div", _hoisted_13, [
              _hoisted_14,
              createElementVNode("div", _hoisted_15, [
                createVNode(_component_a_form_item, { label: "\u529F\u80FD\u542F\u7528" }, {
                  default: withCtx(() => [
                    createVNode(_component_a_radio_group, {
                      value: form.value.danger.status,
                      "onUpdate:value": _cache[7] || (_cache[7] = ($event) => form.value.danger.status = $event),
                      disabled: !isEdit.value
                    }, {
                      default: withCtx(() => [
                        createVNode(_component_a_radio, { value: "1" }, {
                          default: withCtx(() => [
                            createTextVNode("\u542F\u7528")
                          ]),
                          _: 1
                        }),
                        createVNode(_component_a_radio, { value: "0" }, {
                          default: withCtx(() => [
                            createTextVNode("\u7981\u7528")
                          ]),
                          _: 1
                        })
                      ]),
                      _: 1
                    }, 8, ["value", "disabled"])
                  ]),
                  _: 1
                }),
                createVNode(_component_a_form_item, { label: "\u5DE1\u68C0\u65F6\u95F4" }, {
                  default: withCtx(() => [
                    createVNode(_component_a_radio_group, {
                      value: form.value.danger.checkType,
                      "onUpdate:value": _cache[11] || (_cache[11] = ($event) => form.value.danger.checkType = $event),
                      class: "radio-list",
                      disabled: !isEdit.value
                    }, {
                      default: withCtx(() => [
                        createVNode(_component_a_radio, { value: 1 }, {
                          default: withCtx(() => [
                            createTextVNode("\u7CFB\u7EDF\u9ED8\u8BA4")
                          ]),
                          _: 1
                        }),
                        _hoisted_16,
                        createVNode(_component_a_radio, {
                          value: 2,
                          class: "radio-item"
                        }, {
                          default: withCtx(() => [
                            createTextVNode(" \u6BCF\u5929\u5B9A\u65F6"),
                            createVNode(_component_a_time_picker, {
                              value: form.value.danger.checkTime,
                              "onUpdate:value": _cache[8] || (_cache[8] = ($event) => form.value.danger.checkTime = $event),
                              "value-format": "HH:mm:ss",
                              disabled: !isEdit.value
                            }, null, 8, ["value", "disabled"])
                          ]),
                          _: 1
                        }),
                        _hoisted_17,
                        createVNode(_component_a_radio, { value: 3 }, {
                          default: withCtx(() => [
                            createTextVNode(" \u6BCF\u9694"),
                            createVNode(_component_a_input_number, {
                              value: form.value.danger.days,
                              "onUpdate:value": _cache[9] || (_cache[9] = ($event) => form.value.danger.days = $event),
                              precision: 0,
                              min: 0,
                              max: 999,
                              disabled: !isEdit.value
                            }, null, 8, ["value", "disabled"]),
                            createTextVNode(" \u5929\u5B9A\u65F6\uFF1A"),
                            createVNode(_component_a_time_picker, {
                              value: form.value.danger.checkTime,
                              "onUpdate:value": _cache[10] || (_cache[10] = ($event) => form.value.danger.checkTime = $event),
                              "value-format": "HH:mm:ss",
                              disabled: !isEdit.value
                            }, null, 8, ["value", "disabled"])
                          ]),
                          _: 1
                        })
                      ]),
                      _: 1
                    }, 8, ["value", "disabled"])
                  ]),
                  _: 1
                }),
                createVNode(_component_a_form_item, { label: "\u7A3D\u67E5\u5904\u7406" }, {
                  default: withCtx(() => [
                    createVNode(_component_a_radio_group, {
                      value: form.value.danger.disposeType,
                      "onUpdate:value": _cache[12] || (_cache[12] = ($event) => form.value.danger.disposeType = $event),
                      class: "radio-list",
                      disabled: !isEdit.value
                    }, {
                      default: withCtx(() => [
                        createVNode(_component_a_radio, { value: 1 }, {
                          default: withCtx(() => [
                            createTextVNode("\u4E0D\u5904\u7406\uFF0C\u4EC5\u8BB0\u5F55")
                          ]),
                          _: 1
                        }),
                        _hoisted_18,
                        createVNode(_component_a_radio, {
                          value: 2,
                          class: "radio-item"
                        }, {
                          default: withCtx(() => [
                            createTextVNode("\u7CFB\u7EDF\u81EA\u52A8\u5C4F\u853D\u5185\u5BB9")
                          ]),
                          _: 1
                        }),
                        _hoisted_19,
                        createVNode(_component_a_radio, { value: 3 }, {
                          default: withCtx(() => [
                            createTextVNode("\u7CFB\u7EDF\u81EA\u52A8\u5220\u9664\u5185\u5BB9")
                          ]),
                          _: 1
                        })
                      ]),
                      _: 1
                    }, 8, ["value", "disabled"])
                  ]),
                  _: 1
                }),
                createVNode(_component_a_form_item, { label: "\u4E1A\u52A1\u6765\u6E90" }, {
                  default: withCtx(() => [
                    isEdit.value ? (openBlock(), createBlock(_component_a_checkbox_group, {
                      key: 0,
                      value: form.value.danger.sources,
                      "onUpdate:value": _cache[13] || (_cache[13] = ($event) => form.value.danger.sources = $event),
                      options: props.sourceOptions
                    }, null, 8, ["value", "options"])) : (openBlock(), createElementBlock("div", _hoisted_20, [
                      (openBlock(true), createElementBlock(Fragment, null, renderList(dangerSource.value, (item, index2) => {
                        return openBlock(), createElementBlock("span", { key: index2 }, [
                          createTextVNode(toDisplayString(item), 1),
                          dangerSource.value.length - 1 !== index2 ? (openBlock(), createElementBlock("span", _hoisted_21, "\uFF1B")) : createCommentVNode("", true)
                        ]);
                      }), 128))
                    ]))
                  ]),
                  _: 1
                })
              ])
            ]),
            createElementVNode("div", _hoisted_22, [
              _hoisted_23,
              createElementVNode("div", _hoisted_24, [
                createVNode(_component_a_form_item, { label: "\u529F\u80FD\u542F\u7528" }, {
                  default: withCtx(() => [
                    createVNode(_component_a_radio_group, {
                      value: form.value.sensitive.status,
                      "onUpdate:value": _cache[14] || (_cache[14] = ($event) => form.value.sensitive.status = $event),
                      disabled: !isEdit.value
                    }, {
                      default: withCtx(() => [
                        createVNode(_component_a_radio, { value: "1" }, {
                          default: withCtx(() => [
                            createTextVNode("\u542F\u7528")
                          ]),
                          _: 1
                        }),
                        createVNode(_component_a_radio, { value: "0" }, {
                          default: withCtx(() => [
                            createTextVNode("\u7981\u7528")
                          ]),
                          _: 1
                        })
                      ]),
                      _: 1
                    }, 8, ["value", "disabled"])
                  ]),
                  _: 1
                }),
                createVNode(_component_a_form_item, { label: "\u5DE1\u68C0\u65F6\u95F4" }, {
                  default: withCtx(() => [
                    createVNode(_component_a_radio_group, {
                      value: form.value.sensitive.checkType,
                      "onUpdate:value": _cache[18] || (_cache[18] = ($event) => form.value.sensitive.checkType = $event),
                      class: "radio-list",
                      disabled: !isEdit.value
                    }, {
                      default: withCtx(() => [
                        createVNode(_component_a_radio, { value: 1 }, {
                          default: withCtx(() => [
                            createTextVNode("\u7CFB\u7EDF\u9ED8\u8BA4")
                          ]),
                          _: 1
                        }),
                        _hoisted_25,
                        createVNode(_component_a_radio, {
                          value: 2,
                          class: "radio-item"
                        }, {
                          default: withCtx(() => [
                            createTextVNode(" \u6BCF\u5929\u5B9A\u65F6"),
                            createVNode(_component_a_time_picker, {
                              value: form.value.sensitive.checkTime,
                              "onUpdate:value": _cache[15] || (_cache[15] = ($event) => form.value.sensitive.checkTime = $event),
                              "value-format": "HH:mm:ss",
                              disabled: !isEdit.value
                            }, null, 8, ["value", "disabled"])
                          ]),
                          _: 1
                        }),
                        _hoisted_26,
                        createVNode(_component_a_radio, { value: 3 }, {
                          default: withCtx(() => [
                            createTextVNode(" \u6BCF\u9694"),
                            createVNode(_component_a_input_number, {
                              value: form.value.sensitive.days,
                              "onUpdate:value": _cache[16] || (_cache[16] = ($event) => form.value.sensitive.days = $event),
                              precision: 0,
                              min: 0,
                              max: 999,
                              disabled: !isEdit.value
                            }, null, 8, ["value", "disabled"]),
                            createTextVNode(" \u5929\u5B9A\u65F6\uFF1A"),
                            createVNode(_component_a_time_picker, {
                              value: form.value.sensitive.checkTime,
                              "onUpdate:value": _cache[17] || (_cache[17] = ($event) => form.value.sensitive.checkTime = $event),
                              "value-format": "HH:mm:ss",
                              disabled: !isEdit.value
                            }, null, 8, ["value", "disabled"])
                          ]),
                          _: 1
                        })
                      ]),
                      _: 1
                    }, 8, ["value", "disabled"])
                  ]),
                  _: 1
                }),
                createVNode(_component_a_form_item, { label: "\u7A3D\u67E5\u5904\u7406" }, {
                  default: withCtx(() => [
                    createVNode(_component_a_radio_group, {
                      value: form.value.sensitive.disposeType,
                      "onUpdate:value": _cache[19] || (_cache[19] = ($event) => form.value.sensitive.disposeType = $event),
                      class: "radio-list",
                      disabled: !isEdit.value
                    }, {
                      default: withCtx(() => [
                        createVNode(_component_a_radio, { value: 1 }, {
                          default: withCtx(() => [
                            createTextVNode("\u4E0D\u5904\u7406\uFF0C\u4EC5\u8BB0\u5F55")
                          ]),
                          _: 1
                        }),
                        _hoisted_27,
                        createVNode(_component_a_radio, {
                          value: 2,
                          class: "radio-item"
                        }, {
                          default: withCtx(() => [
                            createTextVNode("\u7CFB\u7EDF\u81EA\u52A8\u5C4F\u853D\u5185\u5BB9")
                          ]),
                          _: 1
                        }),
                        _hoisted_28,
                        createVNode(_component_a_radio, { value: 3 }, {
                          default: withCtx(() => [
                            createTextVNode("\u7CFB\u7EDF\u81EA\u52A8\u5220\u9664\u5185\u5BB9")
                          ]),
                          _: 1
                        })
                      ]),
                      _: 1
                    }, 8, ["value", "disabled"])
                  ]),
                  _: 1
                }),
                createVNode(_component_a_form_item, { label: "\u4E1A\u52A1\u6765\u6E90" }, {
                  default: withCtx(() => [
                    isEdit.value ? (openBlock(), createBlock(_component_a_checkbox_group, {
                      key: 0,
                      value: form.value.sensitive.sources,
                      "onUpdate:value": _cache[20] || (_cache[20] = ($event) => form.value.sensitive.sources = $event),
                      options: props.sourceOptions
                    }, null, 8, ["value", "options"])) : (openBlock(), createElementBlock("div", _hoisted_29, [
                      (openBlock(true), createElementBlock(Fragment, null, renderList(sensitiveSource.value, (item, index2) => {
                        return openBlock(), createElementBlock("span", { key: index2 }, [
                          createTextVNode(toDisplayString(item), 1),
                          sensitiveSource.value.length - 1 !== index2 ? (openBlock(), createElementBlock("span", _hoisted_30, "\uFF1B")) : createCommentVNode("", true)
                        ]);
                      }), 128))
                    ]))
                  ]),
                  _: 1
                })
              ])
            ]),
            isEdit.value ? (openBlock(), createBlock(_component_a_form_item, {
              key: 0,
              "wrapper-col": { offset: 5, span: 14 }
            }, {
              default: withCtx(() => [
                createVNode(_component_a_button, { onClick: back }, {
                  default: withCtx(() => [
                    createTextVNode("\u53D6\u6D88")
                  ]),
                  _: 1
                }),
                createVNode(_component_a_button, {
                  type: "primary",
                  "html-type": "submit",
                  loading: loading.value,
                  disabled: loading.value,
                  onClick: submit
                }, {
                  default: withCtx(() => [
                    createTextVNode(" \u4FDD\u5B58 ")
                  ]),
                  _: 1
                }, 8, ["loading", "disabled"])
              ]),
              _: 1
            })) : createCommentVNode("", true)
          ]),
          _: 1
        }, 8, ["model"])
      ]);
    };
  }
});
var configUrationComponent = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-a793a60a"]]);
const config = configSensitive;
const lexiconManagement = lexiconManagementComponent;
const hitManagement = hitManagementComponent;
const lexiconTag = lexiconTagComponent;
const inspectManagement = inspectManagementComponent;
const configUration = configUrationComponent;
var index = {
  install(app) {
    app.component("ConfigUration", configUrationComponent);
    app.component("hitManagement", hitManagementComponent);
    app.component("inspectManagement", inspectManagementComponent);
    app.component("lexiconTag", lexiconTagComponent);
    app.component("lexiconManagement", lexiconManagementComponent);
  }
};
export { config, configUration, index as default, hitManagement, inspectManagement, lexiconManagement, lexiconTag };
